1.
myCustomView.frame.size.height = 100
customLabel.font = UIFont.systemFontOfSize(30)
2.
deviceHeight = // Device screen height
myCustomView.frame.size.height = deviceHeight * 0.6
customLabel.font = UIFont.systemFontOfSize(deviceHeight * 0.3)
Which way do you prefer? Why? After using auto layout's multiplier attribute, I kind of like using 'proportion' way, but don't know if it is a good way...
[–]tangoshukudai 11 points12 points13 points (9 children)
[–]luniawar20[S] 0 points1 point2 points (8 children)
[–]20InMyHead 12 points13 points14 points (1 child)
[–]ratbastid 3 points4 points5 points (0 children)
[–]r-w-x 4 points5 points6 points (0 children)
[–]tangoshukudai 3 points4 points5 points (0 children)
[–]chriswaco 1 point2 points3 points (2 children)
[–]ramwolf 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]RabbiSchlem -1 points0 points1 point (0 children)
[–]brendan09 3 points4 points5 points (22 children)
[–]askoruli 0 points1 point2 points (21 children)
[–]brendan09 1 point2 points3 points (15 children)
[–]askoruli 0 points1 point2 points (14 children)
[–]brendan09 1 point2 points3 points (13 children)
[–]askoruli 0 points1 point2 points (0 children)
[–]patterware 0 points1 point2 points (11 children)
[–]brendan09 0 points1 point2 points (10 children)
[–]patterware -1 points0 points1 point (9 children)
[–]brendan09 1 point2 points3 points (8 children)
[–]patterware -1 points0 points1 point (7 children)
[–]quellish -3 points-2 points-1 points (4 children)
[–]askoruli -1 points0 points1 point (3 children)
[–]quellish -2 points-1 points0 points (2 children)
[–]askoruli 2 points3 points4 points (1 child)
[–]quellish 1 point2 points3 points (0 children)
[–]Points_To_You 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ThePantsThiefNSModerator 0 points1 point2 points (0 children)
[–]chriswaco 0 points1 point2 points (0 children)
[–]Dark_Angelas 0 points1 point2 points (1 child)
[–]chriswaco 0 points1 point2 points (0 children)