【发布时间】:2014-06-05 12:47:49
【问题描述】:
在我的应用程序中,我需要通过单击按钮转到另一个 UIViewController,但是当我在新的 UIViewController 中执行此操作时,它只显示我以编程方式设置的内容。
我用过:
NewSubject *NewS = [[NewSubject alloc] initWithNibName:nil bundle:nil];
[self presentViewController:NewS animated:YES completion:nil];
"NewSubject" 是UIViewController 我也需要去,但是我希望计算机也能显示我通过Storyboard 设置的内容。
【问题讨论】:
-
如果您想要情节提要配置,请使用情节提要来实例化您的视图控制器。 (
instantiateViewControllerWithIdentifier:) -
使用这个链接这是对你的希望stackoverflow.com/questions/23102978/…
标签: ios objective-c uiviewcontroller uibutton