开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜