gpt4 book ai didi

iphone - iOS 在 UIModalTransitionStylePartialCurl View Controller 上呈现全屏 View

转载 作者:行者123 更新时间:2023-12-03 20:15:04 25 4
gpt4 key购买 nike

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

我希望第三个邮件 View 能够突破并完全呈现出来,这不可能吗?

如果我搞乱了 Apple UI 标准或这里的其他内容,请随时批评我。

最佳答案

在curl下关闭vc后,尝试从presentingViewController中呈现邮件vc。该方法如下所示:

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

FirstVC.h

- (void)presentMail;

FirstVC.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];
}];
}

关于iphone - iOS 在 UIModalTransitionStylePartialCurl View Controller 上呈现全屏 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14168824/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com