Quantcast
Channel: DeveloperFeed » DeveloperFeed |
Viewing all articles
Browse latest Browse all 10

How to change font to bold and color of a UILabel?

$
0
0
Snippet The following snippet provides a utiity method to change the label font from bold to regular along with that it changes the color to red or black respectively –(void) updateLabel :(UILabel*) field emphasis :(BOOL) emphasis {     if (emphasis)     {         field.textColor = [UIColor redColor];           UIFont* regFont =  [UIFont fontWithName:@"Verdana-Bold"  size:15];         [field setFont:regFont];       }     else {         field.textColor = [UIColor blackColor];         UIFont* regFont =  [UIFont fontWithName:@"Verdana"  size:15];           [...]

Viewing all articles
Browse latest Browse all 10

Trending Articles