Skip to content

Commit

Permalink
Merge remote-tracking branch 'yackle/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbori committed Dec 18, 2017
2 parents cb69f00 + 9b8b776 commit d6d2fbd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CLImageEditor.podspec
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

s.name = "CLImageEditor"
s.version = "0.2.1"
s.version = "0.2.2"
s.summary = "CLImageEditor provides basic image editing features to iPhone apps."

s.homepage = "https://github.com/yackle/CLImageEditor"
Expand Down
1 change: 1 addition & 0 deletions CLImageEditor/CLImageEditorTheme.h
Expand Up @@ -19,6 +19,7 @@
@property (nonatomic, strong) UIColor *toolbarTextColor;
@property (nonatomic, strong) UIColor *toolbarSelectedButtonColor;
@property (nonatomic, strong) UIFont *toolbarTextFont;
@property (nonatomic, assign) BOOL statusBarHidden;
@property (nonatomic, assign) UIStatusBarStyle statusBarStyle;

+ (CLImageEditorTheme*)theme;
Expand Down
1 change: 1 addition & 0 deletions CLImageEditor/CLImageEditorTheme.m
Expand Up @@ -49,6 +49,7 @@ - (id)init
self.toolbarTextColor = [UIColor blackColor];
self.toolbarSelectedButtonColor = [[UIColor cyanColor] colorWithAlphaComponent:0.2];
self.toolbarTextFont = [UIFont systemFontOfSize:10];
self.statusBarHidden = NO;
self.statusBarStyle = UIStatusBarStyleDefault;
}
return self;
Expand Down
9 changes: 6 additions & 3 deletions CLImageEditor/ViewController/_CLImageEditorViewController.m
Expand Up @@ -615,9 +615,7 @@ - (NSUInteger)supportedInterfaceOrientations
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
#endif
{
return (_currentTool == nil
? UIInterfaceOrientationMaskAll
: (UIInterfaceOrientationMask)[UIApplication sharedApplication].statusBarOrientation);
return UIInterfaceOrientationMaskAll;
}

-(void)viewDidLayoutSubviews
Expand All @@ -628,6 +626,11 @@ -(void)viewDidLayoutSubviews
[self scrollViewDidZoom:_scrollView];
}

- (BOOL)prefersStatusBarHidden
{
return [[CLImageEditorTheme theme] statusBarHidden];
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
return [[CLImageEditorTheme theme] statusBarStyle];
Expand Down
5 changes: 5 additions & 0 deletions Demo/CLImageEditorDemo/CLImageEditorDemo/ViewController.m
Expand Up @@ -36,6 +36,11 @@ - (void)viewDidLoad
[[UINavigationBar appearance] setBarStyle:UIBarStyleBlack];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
*/
}

- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
[self refreshImageView];
}

Expand Down

0 comments on commit d6d2fbd

Please sign in to comment.