-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status Bar handling #186
Comments
Hi @wbsgxc, Thanks for reporting the issue. Could you, please, describe in more detail the problem that arises, or provide a video / screenshot with this problem? |
Hey
Thanks for the reply. I don have a screen shot at this moment, also better not having one as might contain confidential information of the clients….
Basically, I have for example, in the navigatonController:
override var prefersStatusBarHidden: Bool {
return (self.topViewController?.prefersStatusBarHidden)!
}
So that each viewController’s behaviour will be reflected. However when we do (RSKImageCropViewController.m line 160)
UIApplication *application = [UIApplication rsk_sharedApplication];
if (application) {
self.originalStatusBarHidden = application.statusBarHidden;
[application setStatusBarHidden:YES];
}
This will case the view controller’s “hidden preference” been overwritten.
Once again, thanks for great repo, well done :)
Best regards
Xiaochen
… On 21 Dec 2017, at 12:52 PM, Ruslan Skorb ***@***.***> wrote:
Hi @wbsgxc <https://github.com/wbsgxc>,
Thanks for reporting the issue.
Could you, please, describe in more detail the problem that arises, or provide a video / screenshot with this problem?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#186 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFG7ALAjYP5F-XoSnYvRiAOSDAPfOT9kks5tCeQigaJpZM4RJVjN>.
|
Hey @wbsgxc,
If you don't want to hide the status bar I can suggest you to create a subclass of |
@wbsgxc I will close the issue for now. Feel free to reopen it if you have any other suggestions regarding status bar handling. |
Sorry but create a subclass and override prefersStatusBarHidden not work. |
Overriding Since I need to show the status bar on iPad (since the VC will be in a popover), but not on iPhone, I just ended up updating |
@rpendleton please refer my comment above.
|
…we are using `prefersStatusBarHidden` instead of `setStatusBarHidden:` to manage the visibility of the status bar. #186
Hi
Thanks for the great image cropper, it is very easy to integrate, decent looking and good performance. So... thanks and well done :)
I wanna raise a minor issue regarding how the current RSKImageCropperViewController is handling the status bar.
I do see that we are manually set status bar hidden at the "viewWillAppear" stage and I also see the controller assign back the status bar hidden value back inside "viewWillDisappear". In case of an application delegates the status bar's appearance property in each view controller, e.g. a video app or a game fixed up vertical settings page with status bar with landscape full-screen mode without status bar, this will cause trouble for the whole app.
Best regards
Xiaochen
The text was updated successfully, but these errors were encountered: