- 资源导入
将资源图片导入到Assets.xcassets中。

- 添加启动图图片
在LaunchScreen.storyboard中添加UIImageView,设置其约束,并为其选择图片LauchImage。

- 新建工程目录
选中AppDelegate.h文件Show in Finder,创建功能目录文件,并将ViewController.h和ViewController.m文件移动到Classes/RegLog/Controller中,

删掉工程中红色的文件,拖入我们新创建的工程目录,

- 修改已存类文件名
双击ViewController中的ViewController,右键->Refactor->Rename->修改文件名为NPRegLogViewController,确定保存即可。


- 搭建微信控制器
点击Main.stroyboard,将Tab Bar Controller拖进storyboard中,将Size改成iPhone 3.5-inch尺寸。删除Item1,he Item2。

再拖进Navigation ViewController到storyboard中,复制粘贴三份。并连线设置成TabBarViewController的ViewController。

设置TabBarViewController为Main.stroyboard的入口,点击TabBarController勾选Is Initial View Controller。

运行程序,如下图显示,即可。

网友评论