APLNavigationController 0.0.1

APLNavigationController 0.0.1

测试已测试
语言语言 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.



  • Tobias Conradi

自定义 UINavigationController 子类,该类基于 UIViewController 的 apl_hidesNavigationBarWhenPushed 属性添加了对自动显示/隐藏 navigationBar 的支持。

安装

用法

导入头文件

#import "APLNavigationController.h"

NavigationController

要使用 APLNavigationController,就像使用标准 UINavigationController 一样创建一个新的实例

UINavigationController *navController = [[APLNavigationController alloc] initWithRootViewController:yourRootViewController];

自动显示/隐藏 navigationBar

在您的 viewController 中实现

- (BOOL)apl_hidesNavigationBarWhenPushed

return YES -> Hide navigationBar
return NO  -> Show navigationBar (default)