我正在使用没有标签栏控制器的自定义标签栏。当我尝试使用添加 viewController
[self presentModalViewController:controller animated:YES];
编辑:更改为 PresentModalViewController。
这适用于 MFMailComposeViewController 它工作正常,但当我关闭它时它也会删除标签栏。
对于解决方案,我必须在 appDelegate.viewController 上显示控制器,例如:
[APPDELEGATE.navigationController presentModalViewController:controller animated:YES];
编辑:更改为 PresentModalViewController。
这工作正常,不要删除标签栏。但问题是当 iphone 在空闲后被锁定时,我尝试使用这个来展示控制器:
[APPDELEGATE.navigationController presentModalViewController:controller animated:YES];
编辑:更改为 PresentModalViewController。
这没用。
在调试模式下,代码正在执行,但没有呈现 viewController。
非常感谢。