Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写了一个应用程序,它使用我自己的自定义字体在视图上绘制一些文本,在装有 iOS 3.2 的 iPad 上绘制大约需要 200 毫秒,但在我一个月前安装 iOS 4.2 BETA 后,需要 2 到 3 秒以上draw(10-15倍以上),当时我认为这是一个BETA问题,所以我回滚到iOS 3.2,然后昨天我安装了4.2 GM Seed(被认为是最终版本)并且发生了同样的问题,
有人知道发生了什么吗?
谢谢你的帮助,祝你好运
最好的办法是使用 Instruments.app (/Developer/Applications/Instruments.app) 中的 Sampler 工具来确定您的时间都花在了哪里。然后你会知道什么是慢的,你可以优化你需要的。