Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › navigationBar.height is not calculated correctly on iOS if StatusBar is hidden

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13781

    Francois

    Hello,

    navigationBar.height is not correct on iOs when StatusBar is hidden.

    In my Info.plist, I have these parameters :

     

            <key>UIRequiresFullScreen</key>
            <true/>
            <key>UIStatusBarHidden</key>
            <true/>
            <key>UIViewControllerBasedStatusBarAppearance</key>
            <true/>
    

     

    I set a Theme.navigationBar.height value.

    When starting the Apps ( in portrait ), the height value is calculated as if StatusBar is there.

    When you rotate the device in Landscape, the navigationBar.height becomes correct, and stays correct until you quit.

    Is it a bug ? Or I made something wrong ?

    Thanks for your help.

     

    Best Regards.

    F.

     

     

    #13787

    Günther
    Felgo Team

    Hi Francois!

    Can you try setting the UIViewControllerBasedStatusBarAppearance entry in the .plist to false? This should fix the issue.

    Alternatively, you can also set

        Theme.colors.statusBarStyle = Theme.colors.statusBarStyleHidden
    

    This setting can be used to show/hide the statusbar from your code.

    Best,
    Günther

    #13790

    Francois

    Hello Günther,

    Controlling the StatusBar with a Theme is excellent ! It’s exactly what I need…

    Many Thanks for your help.

     

    Best Regards.

     

    F.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded