Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.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
Ios 在处理推入式情节提要时跳转到Uiviewcontroller_Ios_Uiviewcontroller_Delegates_Push - Fatal编程技术网

Ios 在处理推入式情节提要时跳转到Uiviewcontroller

Ios 在处理推入式情节提要时跳转到Uiviewcontroller,ios,uiviewcontroller,delegates,push,Ios,Uiviewcontroller,Delegates,Push,我正在处理推送警报,以便在故事板中从代表处跳转/打开这样的视图 UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Main_iphone4" bundle:nil]; ChatViewController *scvc = (ChatViewController *)[storyboard instantiateViewControllerWithIdentifier:@"ChatViewController"];

我正在处理推送警报,以便在故事板中从代表处跳转/打开这样的视图

UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Main_iphone4" bundle:nil];
 ChatViewController  *scvc = (ChatViewController *)[storyboard instantiateViewControllerWithIdentifier:@"ChatViewController"];
 [self.window.rootViewController presentViewController:scvc animated:YES completion:nil];//not working show nothing while it works to jump using simple xib views.
如果我使用

self.window.rootViewController =scvc;//it works but i need to get back on back button which causes it to get back in blank screen.
如何在处理来自代理的推送时使用故事板跳转到视图控制器。 注意:跳转视图有一个后退按钮,也需要关闭该视图。
注意:应用程序不是基于导航的

[自我呈现视图控制器:scvc动画:是完成:无]//当我知道你的问题时,试着用这个演示VC。没有self,它的委托,所以[self.window.Rootviewcontroller…等可以工作,但它不适用于故事板…甚至标识符集都是正确的