如何访问 Storyboard以及 appDelegate 内的 UIViewControllers。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
return YES;
}
最佳答案
试试这个:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *uvc = [storyboard instantiateViewControllerWithIdentifier:@"Details"];
[self.window.rootViewController presentViewController:uvc animated:YES completion:nil];
关于ios - 在 appDelegate 中访问 Storyboard 和嵌套的 UIViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21557173/