Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocoa touch 从didFinishLaunchingWithOptions显示模式视图_Cocoa Touch_Ios5_Uinavigationcontroller_Modalviewcontroller_Presentmodalviewcontroller - Fatal编程技术网

Cocoa touch 从didFinishLaunchingWithOptions显示模式视图

Cocoa touch 从didFinishLaunchingWithOptions显示模式视图,cocoa-touch,ios5,uinavigationcontroller,modalviewcontroller,presentmodalviewcontroller,Cocoa Touch,Ios5,Uinavigationcontroller,Modalviewcontroller,Presentmodalviewcontroller,我正在尝试将数据从以前的版本迁移到实际的数据格式。当应用程序执行此操作时,我希望显示一个视图,其中显示等待消息(或进度,尚未决定…) 目前,我正在确定何时使用方法AppDelegate did finishlaunchingwithoptions进行迁移,然后我想展示该视图模式。但它根本不起作用 我试过了 [navigationController pushViewController:viewController animated:YES]; // works in a way, but it

我正在尝试将数据从以前的版本迁移到实际的数据格式。当应用程序执行此操作时,我希望显示一个视图,其中显示等待消息(或进度,尚未决定…)

目前,我正在确定何时使用方法
AppDelegate did finishlaunchingwithoptions
进行迁移,然后我想展示该视图模式。但它根本不起作用

我试过了

[navigationController pushViewController:viewController animated:YES]; // works in a way, but it's not modal and it navigates sideways
[navigationController presentModalViewController:viewController animated:YES]; // does nothing. 
我还搜索了这个论坛,找到了一些关于TabViewController的答案。我尝试将其应用到我的场景中,甚至尝试:

[window addSubview:viewController.view];
[window makeKeyAndVisible];
这完全不起作用。有什么想法吗

谢谢


Mark

您是否实例化了该窗口


self.window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]边界]]自动释放]

您是否实例化了该窗口


self.window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]边界]]自动释放]

嗯。。。我加载了一个故事板并在那里做了所有的事情(还有加载原始故事板的处理)。。。我加载了一个故事板并在那里完成了所有操作(还有加载原始故事板的处理)。不,我最近了解到self.window变量不是由系统预先填充的…:/不,我最近了解到self.window变量不是由系统预先填充的…:/