测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布上次发布 | 2014年12月 |
Maintained by Michael Kamphausen, cg, Tino Rachui, Mathias Köhnke, Mathias Koehnke, Nico Schümann, Heiko Wichmann, Stephan Lerner, Famara Kassama.
自定义 UINavigationController 子类,该类基于 UIViewController 的 apl_hidesNavigationBarWhenPushed 属性添加了对自动显示/隐藏 navigationBar 的支持。
导入头文件
#import "APLNavigationController.h"
要使用 APLNavigationController,就像使用标准 UINavigationController 一样创建一个新的实例
UINavigationController *navController = [[APLNavigationController alloc] initWithRootViewController:yourRootViewController];
在您的 viewController 中实现
- (BOOL)apl_hidesNavigationBarWhenPushed
return YES -> Hide navigationBar
return NO -> Show navigationBar (default)