crashing on ios device while navigation using UIModalTransitionStylePartialCurl in xcode 4

前端 未结 2 611
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 12:18

i am using UIModalTransitionStylePartialCurl on the ios 4 device,in my test app i have 2 classes where a single button in each class, in first page onclick of the button it ill

2条回答
  •  爱一瞬间的悲伤
    2021-01-22 13:10

    If you read the documentation for UIModalTransitionStylePartialCurl, you will see that once you've used it you can't present any more modal views.

    If you want to navigate back, I think you should do,

     [self dismissModalViewControllerAnimated:YES];
    

    rather than creating a new view controller instance.

提交回复
热议问题