Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
molon authored and molon committed Jul 19, 2016
1 parent 9505759 commit dd7b195
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Example/MLTransitionNavigationController/TempViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
//

#import "TempViewController.h"
#import <MLTransition.h>

@interface TempViewController ()<UINavigationControllerDelegate>

@property (nonatomic, strong) UIButton *button;

@property (nonatomic, assign) BOOL audoChangeNavBarHidden;
@property (nonatomic, assign) BOOL autoChangeNavBarHidden;

@end

Expand Down Expand Up @@ -64,7 +65,7 @@ - (void)viewDidLoad

//测试2套-------------------------------------------
//测试切换nav的隐藏后效果
self.audoChangeNavBarHidden = YES;
self.autoChangeNavBarHidden = YES;

[self.view addSubview:self.button];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:self action:@selector(pop)];
Expand All @@ -81,7 +82,7 @@ - (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];

if (self.audoChangeNavBarHidden) {
if (self.autoChangeNavBarHidden) {
[[self navigationController] setNavigationBarHidden:[self.navigationController.viewControllers indexOfObject:self]%2==0 animated:animated];
}
}
Expand Down

0 comments on commit dd7b195

Please sign in to comment.