Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.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 更改Apple Watch的初始接口控制器?_Ios_Xcode_Storyboard_Segue_Apple Watch - Fatal编程技术网

Ios 更改Apple Watch的初始接口控制器?

Ios 更改Apple Watch的初始接口控制器?,ios,xcode,storyboard,segue,apple-watch,Ios,Xcode,Storyboard,Segue,Apple Watch,有人知道如何在ExtensionLegate中执行此操作吗?下面是我如何在iPhone的AppDelegate中实现的 self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStory" bundle:nil]; UIViewController *viewControl

有人知道如何在ExtensionLegate中执行此操作吗?下面是我如何在iPhone的AppDelegate中实现的

self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStory" bundle:nil];
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"2ndScreen"];                                                                                                           
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];

您可以在info.plist中执行此操作。如果这个解决方案能让你满意,我可以发布一个答案。你可以在info.plist中发布。如果这个解决方案能让你满意,我可以发布一个答案。