iOS UINavigationController的使用

NavigationController,又称导航控制器。是iOS开发中比较常用的一种容器ViewController,常用于页面的管理和切换。

在开发中,NavigationController常常和UITabBarController一起使用。

如下图,系统语言设置里面的顶部就是一个导航控制器。

iOS UINavigationController的使用

 

 1、导航控制器的创建

iOS UINavigationController的使用

 

iOS UINavigationController的使用

 

2、导航控制器的跳转和返回

iOS UINavigationController的使用

 

iOS UINavigationController的使用

iOS UINavigationController的使用

 

3、自定义导航栏UINavigationBar

iOS UINavigationController的使用

4、自定义导航栏UINavigationItem

iOS UINavigationController的使用

 

iOS UINavigationController的使用

 

5、工具栏的使用

iOS UINavigationController的使用

iOS UINavigationController的使用