Skip to content
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

Typing in text field causes status bar to become visible (and rotation makes it stay visible) #10

Open
dreese opened this issue Oct 24, 2013 · 4 comments

Comments

@dreese
Copy link
Contributor

dreese commented Oct 24, 2013

  1. Bring up newsletter page in an app that hides the status bar
  2. Tap in a text field
  3. Status bar is visible
  4. If you tap away, then the status bar does disappear again

It shouldn't be made visible though. This was on an iPad on iOS 7.

Worse, if you rotate the device while the keyboard is visible, the status bar remains visible even if you dismiss the signup page. It looks like the rotation causes the keyboard to dismiss through some alternate mechanism that doesn't re-hide the status bar.

I'm not sure why the status bar becomes visible when the keyboard does.

@dreese
Copy link
Contributor Author

dreese commented Oct 24, 2013

I think this has something to do with how the invite is being displayed. If I add this method, then the status bar is never shown.

- (BOOL)prefersStatusBarHidden
{
    return YES;
}

I have my own view controller inside a UINavigationController, which is my root view. Because the invite is a child of the navigation controller (rather than my custom view controller) it is getting the default value and somehow forcing it to be displayed.

It'd be nice if the invite could remember the current visibility when showing itself, or that it could be added to a view controller other than the root view controller.

@dreese
Copy link
Contributor Author

dreese commented Oct 24, 2013

Just discovered that setting UIViewControllerBasedStatusBarAppearance to NO in my Info.plist also avoids the problem. Still is a bug, but less priority for me now.

@jkhowland
Copy link
Member

This is going to be unique for every app. Some may want the status bar shown, some may always want it hidden. With iOS 7, it's hard to come up with a solution that fits all if they have UIViewControllerBasedStatusBarAppearance set to YES.

@dreese
Copy link
Contributor Author

dreese commented Dec 3, 2013

That's a good point. However, the bug is that the controller changes the status bar visibility, but does not change it back. I'm not sure why it does that. It seems like it shouldn't programmatically modify it without saving the previous state so that it can be restored correctly.

I could try digging into the code more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants