给Storyboard设置初始页面(Initial Controller)

原文:https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/Chapters/SetInitialController.html

方法一:

1、在Xcode中,打开Storyboard,并打开utilities区域的attributes窗口。

2、选中要设置为初始页面的View Controller或者Window Controller。

3、设置如下:

iOS 的ViewController:

OS X的ViewController:

OS X的WindowController:

方法二:

如上图,在Storyboard中,初始页面的前面会有一个箭头,如果想把其他页面设置为初始页面,只要把这个箭头拖拽到其他的页面即可。

posted @ 2015-12-09 09:00  庭庭小妖  阅读(1219)  评论(0编辑  收藏  举报