How to store all the UIFont size value's into NSMutableArray
Does we can store all the UIFontSize into mutableArray.
Example
We can store all the font family into mutable array like this
_familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSInteger indFamily;
fo开发者_如何学Pythonr (indFamily=0; indFamily<[_familyNames count]; ++indFamily)
{
[_familyNames objectAtIndex:indFamily];
}
In this same passion can we store the UIFont size into mutableArray..
Is it possible.
No because there is an unlimited number of font sizes. Note that fontWithSize takes a float:
- (UIFont *)fontWithSize:(CGFloat)fontSize
Fonts are simply specified at what ever size is needed. One can create an array of NSNumbers of preferred font sizes to present as many applications do.
精彩评论