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

Navigation bar overlap status bar iOS 13 xcode 11 #70

Open
SalehMohammedAlnuwaysir opened this issue Nov 18, 2019 · 3 comments
Open

Navigation bar overlap status bar iOS 13 xcode 11 #70

SalehMohammedAlnuwaysir opened this issue Nov 18, 2019 · 3 comments

Comments

@SalehMohammedAlnuwaysir
Copy link

SalehMohammedAlnuwaysir commented Nov 18, 2019

Dears,

As you can see in the attached photo, after showing the side menu the navigation bar goes behind the status bar, this issue only happens in iOS 13, earlier versions don't have this issue

Screen Shot 2019-11-18 at 9 26 17 AM

Screen Shot 2019-11-18 at 9 20 00 AM

@dogo
Copy link
Owner

dogo commented Nov 20, 2019

Could not reproduce, please provide a sample

@bekironat
Copy link

bekironat commented Nov 21, 2019

I think the issue is related to UIViewController's present method. The sidemenu container view controller's frame grows after dismiss.
It is hard to produce the problem but it is also related with the status bar height.
When the uinavigationbar overlaps after dissmissing presented uiviewcontroller, side menu also goes up. When I left the app and came back, navigationbar comes to normal position.

@RuhsarGunes
Copy link

RuhsarGunes commented Mar 26, 2020

I managed to fix the issue in Xamarin adding this line(Window.rootViewController = navBar) into the below method in the ViewPresenter class. It is mentioned here https://stackoverflow.com/questions/57922502/uinavigationbar-overlapping-status-bar-when-open-project-in-xcode-11.

protected override UINavigationController CreateNavigationController(UIViewController viewController)
{
var navBar = base.CreateNavigationController(viewController);
navBar.NavigationBarHidden = true;

        Window.RootViewController = navBar;
        return navBar;
    }

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

4 participants