I have this in my property :
@property (strong, nonatomic) IBOutlet UILabel *titleLogin;
@property (strong, nonatomic) IBOutlet UILabel *titleRegister;
@property (strong, nonatomic) IBOutlet UILabel *labelTerms;
@property (strong, nonatomic) IBOutlet UILabel *titleVote;
@property (strong, nonatomic) IBOutlet UILabel *labelVote;
on the other hand, I have this loop :
for (UIView *subview in [[self view] subviews]) {
if ([subview isKindOfClass:[UITextField class]]) {
UITextField *textField = (UITextField *)subview;
[textField setFont:[UIFont fontWithName:@"ABeeZee-Regular" size:14]];
} else if ([subview isKindOfClass:[UILabel class]]){
UILabel *label = (UILabel *)subview;
[label setFont:[UIFont fontWithName:@"Raleway-ExtraLight" size:28]];
}
}
with that loop, all of my UILabel has same font size, but I want to make exception for *labelTerms
, *labelVote
and some of other label in the future development.
how to make this exception in loop or in my property? thanks in advance...