UIModalTransitionStylePartialCurl causing UIButton text to animate

前端 未结 2 1067
终归单人心
终归单人心 2020-12-29 16:40

I\'ve got a UIView that gets used in a modal view using the UIModalTransitionStylePartialCurl transition style when it appears. This UIView includes a UIButton. The odd thin

相关标签:
2条回答
  • 2020-12-29 16:58

    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! :)

    0 讨论(0)
  • 2020-12-29 17:04

    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];
    }
    
    0 讨论(0)
提交回复
热议问题