Closed javaboyjunior closed 5 years ago
Can I get a minimum sample project that can confirm this issue?
I have the same issue. Can I hide the status bar?
Sometimes it will appear this circumstance. The occurrence probability is very big when take photos from the camera.
In my project I disabled the status bar. And it appear only in CLImageEditor Controller.
Please try 18c1efe and
[[CLImageEditorTheme theme] setStatusBarHidden:YES];
Thanks yackle, but the problem still exists.
@ghyzx Is that the problem is the status bar is displayed (or collapse of the layout)?
@yackle The status bar and navigation bar are overlap partly.
Does anyone know of a way to reproduce this issue?
my steps is as follows take photo from the camera on iPhone 7 with iOS 11.1
I couldn't reproduce this issue with my device. Can I get sample project that reproduce the issue?
Not sure if my encounter is the same with everyone else. But I was facing the same issue and I solved it by showing the status bar.
Issue I faced:
How I solved it:
Before ViewController A is to present CLImageEditor, set hidden status bar to false. Call [self setNeedsStatusBarAppearanceUpdate];
, and that shall call (BOOL)prefersStatusBarHidden
Clues that helped me solve this:
Found this part of code in CLImageEditorViewController
,
CGFloat dy = ([[[UIDevice currentDevice] systemVersion] floatValue]<7) ? 0 : MIN([UIApplication sharedApplication].statusBarFrame.size.height, [UIApplication sharedApplication].statusBarFrame.size.width);
When statusBar is hidden the [UIApplication sharedApplication].statusBarFrame.size.height
will be zero, and then the setting of constraints to top will be zero as well.
Hope that helps!
How to solve this issue in swift
Not sure if my encounter is the same with everyone else. But I was facing the same issue and I solved it by showing the status bar.
Issue I faced:
- ViewController A has hidden status bar in viewDidAppear
- ViewController A presents CLImageEditor (theme is set to not hide status bar)
- ViewController A viewWillDisappear sets hidden status bar to false
- Overlapping issue as shown by screenshots above happened.
How I solved it: Before ViewController A is to present CLImageEditor, set hidden status bar to false. Call
[self setNeedsStatusBarAppearanceUpdate];
, and that shall call(BOOL)prefersStatusBarHidden
Clues that helped me solve this: Found this part of code in
CLImageEditorViewController
,CGFloat dy = ([[[UIDevice currentDevice] systemVersion] floatValue]<7) ? 0 : MIN([UIApplication sharedApplication].statusBarFrame.size.height, [UIApplication sharedApplication].statusBarFrame.size.width);
When statusBar is hidden the
[UIApplication sharedApplication].statusBarFrame.size.height
will be zero, and then the setting of constraints to top will be zero as well.Hope that helps!
Exact!
@yackle Here is a sample project: CLImageEditor-master.zip
CLImageEditorTheme.theme.statusBarHidden = YES;
CLImageEditorTheme.theme.statusBarHidden = NO;
Demo/CLImageEditorDemo/CLImageEditorDemo.xcodeproj
Edit
button on the bottom barThanks @all I think this issue is fixed by #218, please check it.
👍
Hi Team, is any option to write text on image?
Hi there
Trying to figure out why the buttons for editing tools appear overlapped with the status bar. The main CLImageViewController is fine - it's all the child windows. I can't see any different between my app and the demo although clearly there is something.
Ideas much appreciated.
Thanks
Mike