Skip to content

Commit

Permalink
Added the ability to hide toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Vít committed Feb 19, 2014
1 parent 69f2d0d commit 74a76de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Lib/PECropViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

@property (nonatomic) CGRect cropRect;

@property (nonatomic) BOOL toolbarHidden;
@end

@protocol PECropViewControllerDelegate <NSObject>
Expand Down
2 changes: 1 addition & 1 deletion Lib/PECropViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ - (void)viewDidLoad
action:@selector(constrain:)];
self.toolbarItems = @[flexibleSpace, constrainButton, flexibleSpace];
}
self.navigationController.toolbarHidden = NO;
self.navigationController.toolbarHidden = self.toolbarHidden;

self.cropView.image = self.image;
}
Expand Down

0 comments on commit 74a76de

Please sign in to comment.