不推荐使用CGContextShowTextAtPoint - 我现在应该使用什么? [英] CGContextShowTextAtPoint deprecated - what shall I use now?
本文介绍了不推荐使用CGContextShowTextAtPoint - 我现在应该使用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在iOS 7中,以下内容将被视为已弃用:
CGContextSelectFont,
CGContextShowTextAtPoint。
我应该使用什么?
The following will be considered as deprecated in iOS 7: CGContextSelectFont, CGContextShowTextAtPoint. What should I use instead?
推荐答案
你可以使用 [yourString drawAtPoint:aPoint withAttributes :dictOfAttributes];
该文档这里。
或者您可以在视图层次结构中添加 UILabel
。
Or you could just add a UILabel
to your view hierarchy.
这篇关于不推荐使用CGContextShowTextAtPoint - 我现在应该使用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文