核心文本性能问题
我一直在关注 raywenderlich.com 上的 iOS 教程,名为“如何使用核心文本创建简单的杂志应用程序”LINK
该应用程序在模拟器上运行得很好,但是当我为我的 iPad 1G 构建它时,滚动视图根本不流畅,这性能下降,视图变得无用。 我一直试图在 raywenderlich.com 论坛上寻求帮助,但没有成功。
这是 Core Text 的普遍问题还是您认为如何?
谢谢
I have been following a iOS tutorial on raywenderlich.com, called "How To Create a Simple Magazine App with Core Text" LINK
The App works great on the simulator, but when i build it for my iPad 1G, the scroll view is not fluent at all, the performance goes down, and the view becomes useless.
I have been trying to get help at the raywenderlich.com forum, but with no luck.
Is it a general problem with Core Text or what do you think?
Thansk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当尝试调试延迟问题时,请尝试在应用商店中查找执行类似绘图的类似应用程序。如果您的性能达不到该水平,那么您的代码显然可以改进。
例如,今天,我正在编写一个 UITableView,但是当我运行它时,它的滚动并不流畅。我只是知道有些事情不对劲,因为硬件显然可以处理它;例如,查看音乐应用程序中的滚动性能。所以我使用了分析器工具并最终找到了我的错误。
When trying to debug lag issues, try and find similar apps on the Store that are doing similar drawing. If your performance does not equal that level, then your code can obviously be improved.
For instance today, I was coding a UITableView, but when I ran it - it was not fluid in scrolling. I just knew that something wasn't right as the hardware could obviously handle it; looking at scrolling performance in the Music app for instance. So I used the profiler tools and eventually tracked down my error.