self.name.font = [UIFont fontWithName:@"OpenSans" size:17.0];
self.name.textColor = [UIColor redColor];
'name' is of type UILabel.
I am setting font
and color
of UILabel
. I can see the color
red as soon as I open the page (my viewcontroller). However, the font is initially of regular size 14
and takes some to update. If I stay on the page for sometime the font gets updated automatically to its new size 17
.
Why is there a lag in updation of the 2 properties?