Skip to content

Commit

Permalink
close hide delay.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangshangwen committed Jan 5, 2016
1 parent bb186f9 commit 18af8af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/IDMPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ - (void)viewWillAppear:(BOOL)animated {
_statusBarOriginallyHidden = [UIApplication sharedApplication].statusBarHidden;

// Update UI
[self hideControlsAfterDelay];
// [self hideControlsAfterDelay];
}

- (void)viewDidAppear:(BOOL)animated {
Expand Down Expand Up @@ -1129,7 +1129,7 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
// Hide controls when dragging begins
[self setControlsHidden:YES animated:YES permanent:NO];
[self setControlsHidden:NO animated:YES permanent:YES];
}

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
Expand Down Expand Up @@ -1221,8 +1221,8 @@ - (void)hideControlsAfterDelay {
}

- (BOOL)areControlsHidden { return (_toolbar.alpha == 0); }
- (void)hideControls { if(_autoHide) [self setControlsHidden:YES animated:YES permanent:NO]; }
- (void)toggleControls { [self setControlsHidden:![self areControlsHidden] animated:YES permanent:NO]; }
- (void)hideControls { if(_autoHide) [self setControlsHidden:YES animated:YES permanent:YES]; }
- (void)toggleControls { [self setControlsHidden:![self areControlsHidden] animated:YES permanent:YES]; }


#pragma mark - Properties
Expand Down

0 comments on commit 18af8af

Please sign in to comment.