主题 : sizeWithFont iOS 7.0 新方法的写法

来源:互联网 发布:中华英才网 知乎 编辑:程序博客网 时间:2024/05/16 13:40

m

CGSize size= [@"10"sizeWithFont:self.myFont];最新写法是什么


CGSize size = [@"10"sizeWithAttributes: @{NSFontAttributeName: [UIFont fontWithName:self.myFont size:10]}];

0 0
原创粉丝点击