【问题标题】:iPad open a modalViewController at application launchiPad 在应用程序启动时打开一个 modalViewController
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2011-03-10
      • 1970-01-01
      • 1970-01-01
      • 2021-08-22
      • 2011-08-03
      • 2016-10-04
      • 1970-01-01
      • 2011-07-21
      • 2016-02-18
      相关资源
      最近更新 更多