Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support