【发布时间】:2011-02-17 09:06:10
【问题描述】:
这是我的问题:我有一个基于 SplitViewController 的 iPad 应用程序。当我启动应用程序时,因为它总是以纵向模式启动,所以只显示详细信息窗格。好的。我现在想在应用程序启动时打开一个 modalViewController 以进行登录,但我无法找到正确的方法。我在网上掌握了以下代码:
SampleModalViewController *sampleView = [[[SampleModalViewController alloc] init] autorelease];
[sampleView setModalTransitionStyle:UIModalTransitionStylePartialCurl];
[self presentModalViewController:sampleView animated:YES];
它运行良好,但我必须将它放在哪里才能在启动时显示模态控制器?我试图覆盖DetailViewController中的viewDidLoad,但它不起作用。
感谢您的帮助! 罗伯托
【问题讨论】:
标签: ipad uisplitviewcontroller modalviewcontroller