IOS学习笔记-UINavgationController
Creating Navigation Controllers
方法:initWithRootViewController:
Initializes and returns a newly created navigation controller.
- (instancetype)initWithRootViewController:(UIViewController *)rootViewController
参数:UIViewController
方法:initWithNavigationBarClass:toolbarClass
Initializes and returns a newly created navigation controller that uses your custom bar subclasses.
- (instancetype)initWithNavigationBarClass:(Class)navigationBarClass
toolbarClass:(Class)toolbarClass
参数:navigationBarClass、toolbarClass
属性:topViewController
The view controller at the top of the navigation stack. (read-only)
@property(nonatomic, readonly, retain) UIViewController *topViewController
属性:visibleViewController
The view controller associated with the currently visible view in the navigation interface. (read-only)
@property(nonatomic, readonly, retain) UIViewController *visibleViewController
属性:viewControllers
The view controllers currently on the navigation stack.
@property(nonatomic, copy) NSArray *viewControllers
方法:setViewControllers:animated:
Replaces the view controllers currently managed by the navigation controller with the specified items.
- (void)setViewControllers:(NSArray *)viewControllers
animated:(BOOL)animated
Pushing and Popping Stack Items
方法:pushViewController:animated:
Pushes a view controller onto the receiver’s stack and updates the display.
- (void)pushViewController:(UIViewController *)viewController
animated:(BOOL)animated
参数:viewController、animated
方法:popViewControllerAnimated:
Pops the top view controller from the navigation stack and updates the display.
- (UIViewController *)popViewControllerAnimated:(BOOL)animated
参数:animated
方法:popToRootViewControllerAnimated:
Pops all the view controllers on the stack except the root view controller and updates the display.
- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
参数:animated
方法:popToViewController:animated:
Pops view controllers until the specified view controller is at the top of the navigation stack.
- (NSArray *)popToViewController:(UIViewController *)viewController
animated:(BOOL)animated
参数:viewController、animated
属性:interactivePopGestureRecognizer
The gesture recognizer responsible for popping the top view controller off the navigation stack. (read-only)
@property(nonatomic, readonly) UIGestureRecognizer *interactivePopGestureRecognizer
Configuring Navigation Bars
属性:navigationBar
The navigation bar managed by the navigation controller. (read-only)
@property(nonatomic, readonly) UINavigationBar *navigationBar
方法:-setNavigationBarHidden:animated:
Sets whether the navigation bar is hidden.
- (void)setNavigationBarHidden:(BOOL)hidden
animated:(BOOL)animated
Hiding the Navigation Bar
属性:hidesBarsOnTop
属性: hidesBarsOnSwipe
属性:hidesBarsWhenVerticallyCompact
属性:hidesBarsWhenKeboardAppears
属性:navigationBarHidden
属性:barHideOnTapGestureRecognzier
属性:barHideOnSwipeGestureRecognizer
附言:
Use this initialization method if you want to use custom navigation bar or toolbar subclasses with the navigation controller. If you use this method, you are responsible for adding a root view controller before presenting the navigation controller onscreen.
转载于:https://www.cnblogs.com/nr8671800/p/4432152.html
IOS学习笔记-UINavgationController相关推荐
- OpenCV for Ios 学习笔记(4)-标记检测1
本文原始地址:OpenCV for Ios 学习笔记(4)-标记检测1 简单的标记经常是以白色块和黑色块构成的规则图形.因为我们预先知道这些因素,所以我们可以很容易检测标记. 如图: 首先,我们需要找 ...
- IOS学习笔记(九)之UIAlertView(警告视图)和UIActionSheet(操作表视图)基本概念和使用方法...
IOS学习笔记(九)之UIAlertView(警告视图)和UIActionSheet(操作表视图)基本概念和使用方法 Author:hmjiangqq Email:jiangqqlmj@163.com ...
- IOS学习笔记(四)之UITextField和UITextView控件学习
IOS学习笔记(四)之UITextField和UITextView控件学习(博客地址:http://blog.csdn.net/developer_jiangqq) Author:hmjiangqq ...
- iOS学习笔记-自己动手写RESideMenu
代码地址如下: http://www.demodashi.com/demo/11683.html 很多app都实现了类似RESideMenu的效果,RESideMenu是Github上面一个stars ...
- iOS学习笔记-地图MapKit入门
代码地址如下: http://www.demodashi.com/demo/11682.html 这篇文章还是翻译自raywenderlich,用Objective-C改写了代码.没有逐字翻译,如有错 ...
- iOS学习笔记-自定义过渡动画
代码地址如下: http://www.demodashi.com/demo/11678.html 这篇笔记翻译自raywenderlick网站的过渡动画的一篇文章,原文用的swift,由于考虑到swi ...
- IOS学习笔记07---C语言函数-scanf函数
2013/8/7 IOS学习笔记07---C语言函数-scanf函数 ------------------------------ qq交流群:创梦技术交流群:251572072 ...
- IOS学习笔记07---C语言函数-printf函数
IOS学习笔记07---C语言函数-printf函数 0 7.C语言5-printf函数 ------------------------- ----------------------------- ...
- IOS学习笔记06---C语言函数
IOS学习笔记06---C语言函数 -------------------------------------------- qq交流群:创梦技术交流群:251572072 ...
- IOS学习笔记05---C语言程序的开发运行过程
IOS学习笔记05---C语言程序的开发运行过程 0 5.C语言3-C语言程序的开发运行过程 ----------------------------------------------------- ...
最新文章
- SQL面试题: 数据库中有A B C三列,用SQL语句实现:当A列大于B列时选择A列否则选择B列 ,当B列大于C列时选择B列否则选择C列 ,...
- CYQ.Data 轻量数据层之路 V2.0 震撼惊世 支持多数据库/内置Aop(二十五)
- 十分简洁的手机浏览器 lydiabox
- 系统架构师笔记(2)
- 机器学习-特征抽取02
- static和不完全类型的一个例子
- ffplay分析 (seek操作处理)
- java 基础做增删改查教学_Java Mybatis 增删改查 简单使用 入门 简版
- libcareplus多补丁管理
- 你还在用虚拟机,win10自带的linux还有图形界面(小白教程)
- WebService究竟是什么?
- centos7 mysql5.6.35_Centos7.2.1511 编译安装Mysql5.6.35
- thinkphp 又一问题
- Linux下载WordPress出现错误,从win server 2008迁移wordpress到linux时出现的问题
- SSD测试专题(二)
- python——平方根
- indexOf的用法
- 形状的度量Measures of Shape
- php如何pfx转成jks证书,常规方法不行,变相来实现
- A graph auto-encoder model for miRNA-disease associations prediction 论文解析
热门文章
- unity api中文手册_unity 中文API之Display
- STM32——HAL库函数版——AD7656驱动程序
- 如何在信用卡反欺诈检测中使用人工智能和机器学习
- OpenCV3.0-图像特征检测
- Swift 5 从Model, Struct或Class转Dictionary
- swift5 修改Accessibility order读取的顺序
- 数据操作(基于MXNET框架)
- linux命令hexdump,Linux中hexdump命令起什么作用呢?
- 2021-09-08推荐系统 简述DeepFM模型
- 2021-08-30缺失的第一个正数