From 3e615e184983648d4a3d0349e9eb953324a191cc Mon Sep 17 00:00:00 2001 From: JazysYu <375297882@qq.com> Date: Wed, 27 Apr 2016 15:02:49 +0800 Subject: [PATCH] readme&podspec --- JZNavigationExtension.podspec | 2 +- README.md | 27 ++++++++++++++++----------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/JZNavigationExtension.podspec b/JZNavigationExtension.podspec index 95ae726..befb673 100644 --- a/JZNavigationExtension.podspec +++ b/JZNavigationExtension.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "JZNavigationExtension" - s.version = "1.4.0" + s.version = "1.4.5" s.summary = "Integrates some convenient functions and open some hide property for UINavigationController." s.description = "The 'UINavigationController+JZExtension' category integrates some convenient functions for your UINavigationController. Just pod in 3 files and no need for any setups." s.homepage = "https://github.com/JazysYu/JZNavigationExtension" diff --git a/README.md b/README.md index f80a21d..6ced79a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # JZNavigationExtension -[![Version](https://img.shields.io/badge/pod-v1.4.0-5193DB.svg)](https://cocoapods.org/pods/JZNavigationExtension) +[![Version](https://img.shields.io/badge/pod-v1.4.5-5193DB.svg)](https://cocoapods.org/pods/JZNavigationExtension) [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)]() [![License](https://img.shields.io/badge/license-MIT-2F2F2F.svg)](https://github.com/JazysYu/JZNavigationExtension/blob/master/LICENSE) -The "UINavigationController+JZExtension" category integrates some convenient features and open some hide functions for UINavigationController. +JZNavigationExtension integrates some convenient features for UINavigationController. ___ -"UINavigationController+JZExtension"分类为UINavigationController集成了许多方便的功能点,同时为它打开了一些隐藏功能。 +JZNavigationExtension为UINavigationController集成了许多方便的功能。 + # Features * [To gives you a fullscreen interactivePopGestureRecognizer](#FPG) * [To hides navigation bar when the view controller is pushed on to a navigation controller](#HNBP) @@ -33,14 +34,14 @@ ___ To gives you a fullscreen interactivePopGestureRecognizer【打开全屏Pop手势】: ``` objc -navigationController.fullScreenInteractivePopGestureRecognizer = YES; +navigationController.jz_fullScreenInteractivePopGestureEnabled = YES; ``` ___ Set a completion for fullscreen interactivePopGestureRecognizer【全屏Pop手势回调】: ``` objc -[self.navigationController setInteractivePopGestureRecognizerCompletion:^(BOOL finished) { +[self.navigationController jz_setInteractivePopGestureRecognizerCompletion:^(BOOL finished) { if (finished) { // Codes } @@ -51,14 +52,14 @@ ___ To hides navigation bar when the view controller is pushed on to a navigation controller【支持转场隐藏、显示导航栏】: ``` objc UIViewController *viewController = [UIViewController new]; -viewController.wantsNavigationBarVisible = NO; +viewController.jz_wantsNavigationBarVisible = NO; [self.navigationController pushToViewController:viewController animated:YES]; ``` ___ To Push/Pop view controller With blocks【导航控制器转场回调】: ``` objc -[self.navigationController pushViewController:viewController animated:YES completion:^(BOOL finished) { +[self.navigationController jz_pushViewController:viewController animated:YES completion:^(BOOL finished) { ///Do any thing }]; ``` @@ -67,14 +68,14 @@ ___ To adjust navigation/tool bar background alpha【调节导航控制器的导航栏、工具条透明度】: ``` objc -navigationController.navigationBarBackgroundAlpha = yourAlpha; +navigationController.jz_navigationBarBackgroundAlpha = yourAlpha; ``` ___ To change navigation/tool bar size【改变导航控制器的导航栏、工具条大小】: ``` objc -[navigationController setNavigationBarSize:size]; +[navigationController setJz_navigationBarSize:size]; ``` ___ @@ -83,7 +84,7 @@ ___ ``` objc UIViewController *viewController = [UIViewController new]; -viewController.navigationBarBackgroundHidden = YES; +viewController.jz_navigationBarBackgroundHidden = YES; ``` ![overview](https://raw.githubusercontent.com/JazysYu/JZNavigationExtension/master/Snapshots/JZNavigationExtensionDemo2.gif) @@ -93,12 +94,16 @@ ___ ``` objc UIViewController *viewController = [UIViewController new]; -viewController.navigationBarTintColor = [UIColor redColor]; +viewController.jz_navigationBarTintColor = [UIColor redColor]; ``` ![overview](https://raw.githubusercontent.com/JazysYu/JZNavigationExtension/master/Snapshots/JZNavigationExtensionDemo3.gif) ___ +Many other features please look up public header files... + +###### NS_AVAILABLE_IOS(7_0) + # Installation #### Use cocoapods