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]; [...]
↧