From c04bfc70b5daf97bd1bd4004688d83586f38ae4f Mon Sep 17 00:00:00 2001 From: Shaw Date: Thu, 30 Mar 2017 19:40:51 +0800 Subject: [PATCH] Update readme; --- Example/EmbedTabBarController.m | 3 +++ README.md | 2 +- RRNavigationBar.xcodeproj/project.pbxproj | 6 +++--- Sources/UINavigationController+RRNavigationBar.m | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Example/EmbedTabBarController.m b/Example/EmbedTabBarController.m index 0ebab8f..a72b064 100644 --- a/Example/EmbedTabBarController.m +++ b/Example/EmbedTabBarController.m @@ -27,6 +27,9 @@ - (void)viewDidLoad { global.tintColor = [UIColor magentaColor]; global.barStyle = UIBarMetricsDefault; global.translucent = YES; +// UIImage *indicatorImage = RRUIImageMakeWithSize([UIColor orangeColor], CGSizeMake(13, 21)); +// global.backIndicatorImage = indicatorImage; +// global.backIndicatorTransitionMaskImage = indicatorImage; } UINavigationController *productRoot = [[UINavigationController alloc] initWithRootViewController:[ProductListViewController new]]; diff --git a/README.md b/README.md index 3f8e361..8a12d00 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ bring `UINavigationBar` to` UIViewController`. Here is the situation I couldn't doing well by using [KMNavigationBarTransition](https://github.com/MoZhouqi/KMNavigationBarTransition): first page is a product list, click product line, push to product details page, requires transparent `navigationBar`, while you scrolling, it could recover to default `navigationBar`'s appearance. Continue push to the next page, the `navigationBar` needs to look like the first page, which is the default appearance. (like the following 1st gif tells.) -In a word, what I wanted is change the `navigationBar`'s appearance only affect current viewController, which is this repo trying to do. +In a word, what I wanted is **change the `navigationBar`'s appearance only affect current viewController**, which is this repo trying to do.

  diff --git a/RRNavigationBar.xcodeproj/project.pbxproj b/RRNavigationBar.xcodeproj/project.pbxproj index 715b8e9..af74f23 100644 --- a/RRNavigationBar.xcodeproj/project.pbxproj +++ b/RRNavigationBar.xcodeproj/project.pbxproj @@ -229,7 +229,7 @@ TargetAttributes = { 4692E4191E7AED4A00C53A89 = { CreatedOnToolsVersion = 8.2.1; - DevelopmentTeam = 69FFLZ25N6; + DevelopmentTeam = XDN35K5RF2; ProvisioningStyle = Automatic; }; }; @@ -401,7 +401,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 69FFLZ25N6; + DEVELOPMENT_TEAM = XDN35K5RF2; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -419,7 +419,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = 69FFLZ25N6; + DEVELOPMENT_TEAM = XDN35K5RF2; INFOPLIST_FILE = Example/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.2; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/Sources/UINavigationController+RRNavigationBar.m b/Sources/UINavigationController+RRNavigationBar.m index 6e2a960..a807cba 100644 --- a/Sources/UINavigationController+RRNavigationBar.m +++ b/Sources/UINavigationController+RRNavigationBar.m @@ -33,6 +33,7 @@ #ifndef RRExcludeImagePicker # define RRExcludeImagePicker(instance) if ([instance isKindOfClass:UIImagePickerController.class]) { return; } #endif + @interface UINavigationController () @property (nonatomic, weak, nullable) UIViewController *_visibleTopViewController; @property (nonatomic, assign) BOOL _navigationBarInitialized;