I was wondering why there is no differences between these three:
textView.font = [UIFont fontWithName:f size:10.0];
textView.font = [UIFont fontWithName:f size:10.5];
textView.font = [UIFont fontWithName:f size:10.9];
The font will be shown at 10, no matter what. Will the font size be converted from CGFloat to an integer?
I think the font size is being changed but less than 1 increment is very less i.e. our eyes unable to figure it out. You can see it after getting the
textViewfont size.After each increment
NSLogthe font Size oftextViewthen see what does it print ..You will get it like this:
fontSize1 = 10.000000
fontSize2 = 10.500000
fontSize3 = 10.900000