开发者

Objective C - prevent feel of unresponsiveness when clicking a button [closed]

开发者 https://www.devze.com 2023-04-12 14:00 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 9 years ago.

Improve this question

What tricks 开发者_如何学Gocan I do to make my app feel "snappier"?

For example, when I click on a menu button, which loads a different nib file, there is this 1 second delay before the new view shows up, making it feel like the app isn't responsive.

Thank you,

Tee


You could reduce the nib load time by simplifying the content or making some of it load after the view controller appears on-screen.

You can run Instruments on it to try and get an idea of where the choke point is. If it feels unresponsive, compared to other apps, then maybe you're doing something wrong or computationally expensive.

Check that your images are sized correctly. If they're too big that'll up the load time + memory usage.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号