UIModalTransitionStylePartialCurl causing UIButton text to animate

瘦欲@ 提交于 2019-11-30 05:41:45

I had the same problem and the mentioned autoresizingMask code didn't work for me. Although it did give me some pointers in which direction I should look. Basically the view that will appear should be 'drawn' before being show to have it's initial placing. Before IOS 5 this was automatically done for the animation including the page-curl, but IOS 5 broke it. But adding the forced 'drawing' yourself at viewDidLoad solved it for me!

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.view layoutIfNeeded];
}
RoberRM

Although in this post I offer my answer for this problem. The patch PHO offered later in this very thread is cleaner. Thank you PHO! :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!