使用tablebar完成主页 增加导航栏
使用tablebar
第一次使用tablebar
在加入tarblebar控制器后 1.在Delegate文件 didFinishLaunchingWithOptions方法中
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190408152713649.png)
2.在TablebarViewController 中 注册四个页面
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190408153149361.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1dpQ2hlbmcyMDE5,size_16,color_FFFFFF,t_70)
3.设置导航栏
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:homevc];