UINavigationController相关
2016-03-01 09:27
381 查看
//跳转到自己想要的控制器
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;
//就是导航栈stack的栈顶
topViewController
//如果有模态视图就是模态视图,否则就是topViewController
visibleViewController是当前展示的viewController
//隐藏导航栏
- (void)setNavigationBarHidden:(BOOL)hidden
animated:(BOOL)animated;
//隐藏工具栏
- (void)setToolbarHidden:(BOOL)hidden
animated:(BOOL)animated
//弹出键盘时候隐藏导航栏(>=iOS8)
hidesBarsWhenKeyboardAppears
//滚动时候隐藏导航栏(>=iOS8)
hidesBarsOnSwipe
//拉到底部时候隐藏导航栏(>=iOS8)
hidesBarsWhenVerticallyCompact
//push的控制器没有底部Tabbar
hidesBottomBarWhenPushed
//设置底部tabbar的item
setToolbarItems
//UINavigationControllerDelegate
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;
//就是导航栈stack的栈顶
topViewController
//如果有模态视图就是模态视图,否则就是topViewController
visibleViewController是当前展示的viewController
//隐藏导航栏
- (void)setNavigationBarHidden:(BOOL)hidden
animated:(BOOL)animated;
//隐藏工具栏
- (void)setToolbarHidden:(BOOL)hidden
animated:(BOOL)animated
//弹出键盘时候隐藏导航栏(>=iOS8)
hidesBarsWhenKeyboardAppears
//滚动时候隐藏导航栏(>=iOS8)
hidesBarsOnSwipe
//拉到底部时候隐藏导航栏(>=iOS8)
hidesBarsWhenVerticallyCompact
//push的控制器没有底部Tabbar
hidesBottomBarWhenPushed
//设置底部tabbar的item
setToolbarItems
//UINavigationControllerDelegate
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated;
相关文章推荐
- 解决后台无法进入提示DedeCMS Error: (PHP 5.3 and above) Please set 'request_order' ini value
- UINavigationController具体解释(二)
- Set-DnsServerGlobalQueryBlockList
- question_001
- arduino 驱动电调
- Fuel6.0的两个问题和定位
- [Hapi.js] Request Validation with Joi
- HDU 4620 Fruit Ninja Extreme(搜索)
- leetcode:Increasing Triplet Subsequence
- IOS(UI)_属性传值
- [Erlang_Question35]Erlang18的time
- SPOJ 2666 QTREE4 - Query on a tree IV
- UItextFied 的属性
- selenium webdriver如何解决easyui日期控件问题
- 设置UIImage的渲染模式:UIImage.renderingMode
- Semantic UI带你飞——Modal
- ios UILabel 字体设置 大全
- BZOJ-2037 Sue的小球 DP+费用提前
- BZOJ-2037 Sue的小球 DP+费用提前
- UITableView 优化总结