Skip to content

Commit

Permalink
Update readme;
Browse files Browse the repository at this point in the history
  • Loading branch information
cuzv committed Mar 30, 2017
1 parent e31a168 commit c04bfc7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Example/EmbedTabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<p align="left">
<img src="./Preview/1.gif" width=240px"> <img src="./Preview/2.gif" width=240px">
Expand Down
6 changes: 3 additions & 3 deletions RRNavigationBar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
TargetAttributes = {
4692E4191E7AED4A00C53A89 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 69FFLZ25N6;
DevelopmentTeam = XDN35K5RF2;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -401,7 +401,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 69FFLZ25N6;
DEVELOPMENT_TEAM = XDN35K5RF2;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand All @@ -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";
Expand Down
1 change: 1 addition & 0 deletions Sources/UINavigationController+RRNavigationBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#ifndef RRExcludeImagePicker
# define RRExcludeImagePicker(instance) if ([instance isKindOfClass:UIImagePickerController.class]) { return; }
#endif

@interface UINavigationController ()<UINavigationControllerDelegate, UIGestureRecognizerDelegate>
@property (nonatomic, weak, nullable) UIViewController *_visibleTopViewController;
@property (nonatomic, assign) BOOL _navigationBarInitialized;
Expand Down

0 comments on commit c04bfc7

Please sign in to comment.