最佳答案
我开始查看Swift Programming Language
,不知为何我不能从特定的UIStoryboard
正确地键入UIViewController
的初始化。
在Objective-C
中,我简单地写:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardName" bundle:nil];
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"ViewControllerID"];
[self presentViewController:viewController animated:YES completion:nil];
有人能帮助我如何在斯威夫特上实现这一点吗?