I have multiple textviews in my uiview I need to set the font size of this textviews, so I used the following code but it didn’t change the font size,
for (UIView *subview in self.view.subviews) {
if ([subview isKindOfClass:[UITextView class]]) {
((UITextView *)subview).font = [UIFont fontWithName:@"Helvetica" size:12];
}
}
As @jrturton says, perhaps your text views are subviews of a subview, then some kind of recursive code is needed. For example: