开发者

Presenting view controller modally animates slowly

I have a view that I am presenting modally. For some reason it animates very slowly.

[self.parentViewController.tabBarController presentModalViewControlle开发者_StackOverflow社区r:browser animated:TRUE];

I'm not sure why? I have even tried:

[self presentModalViewController:browser animated:TRUE];

UPDATE: The UITableViewController that is presenting it, is drawing custom UITableViewCell's that have images with rounded corners. Not sure if that makes a difference.


There's so setting for the animation speed. It's all native. The only time I have noticed this is when my device was running slowly. Try it in the simulator versus the iPhone. In addition, may sure you are not debugging as that will eat resources.

If it is still slow, I would wonder what your model view controller is loading - i.e. large nib or viewDidLoad?


If it takes more than a couple seconds to load the new view controller, try running on the device with Instruments. After you've built the binary, go to the Run-> Run with Performance Tool-> CPU Sampler and do what you're doing that seems slow. You might want to do it several times to make sure Instruments gets enough data. Then stop the data collection in Instruments and see where in your code it's slow.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜