AKSideMenu icon indicating copy to clipboard operation
AKSideMenu copied to clipboard

Navigation bar overlap status bar iOS 13 xcode 11

Open SalehMohammedAlnuwaysir opened this issue 6 years ago • 3 comments

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

SalehMohammedAlnuwaysir avatar Nov 18 '19 06:11 SalehMohammedAlnuwaysir

Could not reproduce, please provide a sample

dogo avatar Nov 20 '19 14:11 dogo

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.

bekironat avatar Nov 21 '19 14:11 bekironat

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;
    }

RuhsarGunes avatar Mar 26 '20 16:03 RuhsarGunes