JZNavigationExtension integrates many convenient features for UINavigationController.
JZNavigationExtension为UINavigationController集成了许多方便的功能。
New cleaner File Struct and safer Implementation.
To gives you a fullscreen interactivePopGestureRecognizer【打开全屏Pop手势】:
navigationController.jz_fullScreenInteractivePopGestureEnabled = YES;
Set a completion for fullscreen interactivePopGestureRecognizer【全屏Pop手势回调】:
[self.navigationController jz_setInteractivePopGestureRecognizerCompletion:^(BOOL finished) {
if (finished) {
// Codes
}
}];
Change navigation bar transition style 【改变导航栏动画】:
navigationController.jz_navigationBarTransitionStyle = JZNavigationBarTransitionStyleDoppelganger
To hides navigation bar when the view controller is pushed on to a navigation controller【支持转场隐藏、显示导航栏】:
UIViewController *viewController = [UIViewController new];
viewController.jz_navigationBarHidden = YES;
[self.navigationController pushToViewController:viewController animated:YES];
To Push/Pop view controller With blocks【导航控制器转场回调】:
[self.navigationController jz_pushViewController:viewController animated:YES completion:^(BOOL finished) {
///Do any thing
}];
To adjust navigation/tool bar background alpha【调节导航控制器的导航栏、工具条透明度】:
navigationController.jz_navigationBarBackgroundAlpha = yourAlpha;
To change navigation/tool bar size【改变导航控制器的导航栏、工具条大小】:
[navigationController setJz_navigationBarSize:size];
To hide navigation bar background alpha during pop gesture is interactiving【导航栏手势交互时改变导航栏透明度】
UIViewController *viewController = [UIViewController new];
viewController.jz_navigationBarBackgroundHidden = YES;
Change navigation bar tint color by different view controller【导航栏手势交互时改变导航栏颜色】
UIViewController *viewController = [UIViewController new];
viewController.jz_navigationBarTintColor = [UIColor redColor];
Many other features please look up public header files...
因为许多国内朋友问我的几个API的问题,所以写了一篇文档简单解释了一下,请参考这里
pod 'JZNavigationExtension'
Drag all source files under floder JZNavigationExtension to your project.
If you've used this project in a live app, please let me know! Nothing makes me happier than seeing someone else take my work and go wild with it.
If you are using JZNavigationExtension
in your app or know of an app that uses it, please add it to this list.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。