iOS在UIModalTransitionStylePartialCurl视图控制器上显示全屏视图

时间:2013-01-05 05:09:15

标签: iphone ios navigation viewcontroller

为iPhone开发,我有一个主视图控制器,它使用UIModalTransitionStylePartialCurl的转换呈现第二个“共享”视图控制器。这些似乎从UI的角度来看是有意义的,因为它可以占用一点空间,在底部显示一些共享按钮,同时保持用户在主视图上。此时,如果我有一个按钮启动第三个视图(在这种情况下为MFMailComposeViewController),邮件程序视图将显示在上一个视图的卷曲下方,使其无法使用。

我希望第三个Mail视图能够突破并完全呈现,这是不可能的?

如果我弄乱了Apple UI标准或其他什么东西,请随意拍下我。

1 个答案:

答案 0 :(得分:0)

在解除curl下的vc后,尝试从presentsViewController中显示邮件vc。这种方法看起来像这样:

在FirstVC(触发卷曲过渡的那个)中:

FirstVC.h

- (void)presentMail;

FirstVC.m

- (void)presentMail {
    // the code to present the mail UI, moved here from the SecondVC under the curl
}

SecondVC.m

- (IBAction)userPressedTheMailButton:(id)sender {

    [self dismissViewControllerAnimated:YES completion:^{
        [self.presentingViewController presentMail];
    }];
}