有人已经知道如何将 Storyboard 中的 UIViewController 与标识符连接起来吗?似乎不再起作用了..
最佳答案
选择 UIViewController,一旦看到突出显示的 UIView(通常是蓝色),然后转到 XCODE 上最左边的列。选择属性检查器,您将在“ View Controller ”部分看到“标题”和“标识符”标签。给它任何名称,并在程序中引用您的 View Controller ,您可以执行以下操作:
UIStoryboard *us = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];
FirstViewController *fvc = [storyboard instantiateViewControllerWithIdentifier:@"firstview"];
这有效,如果您有任何问题,请告诉我。
关于iphone - iOS6:如何通过Identifier连接Storyboard中的UIViewController?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12504164/