I allow users to add a UITextField on top of their images, such as UITextField .
I designed it so that their images are perfect squares depending on the screen size of the iPhone. So on my iPhone 5S it will be 320x320 UIImageView . IPhone 6 will be 375x375 UIImageView . Images placed on large phones with a screen will be reduced using ImageView when viewed on a smaller phone.
How to adjust the font size that will be related to the width of the screen?
I am currently using:
[UIFont systemFontOfSize:16.0]
Is it appropriate to use ?:
[UIFont systemFontOfSize:self.frame.size.width/20]
I'm not sure what dot size actually represents the font size. I also found [UIFont preferredFontForTextStyle:UIFontTextStyleBody]; but I'm not sure if this is what i'm looking for.
thanks
source share