3

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

我希望第三个邮件视图能够完全爆发并呈现出来,这不可能吗?

如果我在这里搞砸了 Apple UI 标准或其他东西,请随意击落我。

4

1 回答 1

0

在 curl 下关闭 vc 后,尝试从 presentingViewController 呈现邮件 vc。这种方法看起来像这样:

在 FirstVC(触发 curl 转换的那个)中:

第一VC.h

- (void)presentMail;

第一VC.m

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

第二VC.m

- (IBAction)userPressedTheMailButton:(id)sender {

    [self dismissViewControllerAnimated:YES completion:^{
        [self.presentingViewController presentMail];
    }];
}
于 2013-01-05T05:21:27.760 回答