首先,右键new file可创建storyboard并命名;
然后,从控件选择区拉入tabviewController;选中,Editor-->embed in -->Navgation controller;自动生成NavgationController;
最后设置入口:选中navgationController,点击属性区,is initial view controller 前选中即可。可顺便选中adjsut scroll view insets。(self.automaticallyAdjustsScrollViewInsets = NO;)
补充:navgationController一般继承于新建类。
网友评论