作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
如何在 iOS 上找出要与 CGContextSelectFont
一起使用的系统字体名称?
最佳答案
这应该可以解决问题:
[UIFont systemFontOfSize:12].fontName
但是,我不建议使用 CGContextSelectFont()
方法,因为它将于 9 月 18 日在 iOS 7 中弃用。文档是这样说的:
(Deprecated in iOS 7.0. Use Core Text instead.)
关于ios - 使用 CGContextSelectFont 的系统字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18730544/
在 iOS7 中,CGContextSelectFont 已弃用。弃用消息说我必须使用 Core Text,但我不知道这段代码的确切等价物是什么: CGContextSelectFont(contex
如何在 iOS 上找出要与 CGContextSelectFont 一起使用的系统字体名称? 最佳答案 这应该可以解决问题: [UIFont systemFontOfSize:12].fontName
CGContextSelectFont 和 CGContextShowTextAtPoint 在 iOS 7 中已被弃用。 C 中的等价物是什么? 我看到的所有答案都给出了 Objective-C 的
我是一名优秀的程序员,十分优秀!