UINavigationBar autoresizing

前端 未结 8 2003
忘了有多久
忘了有多久 2020-12-08 11:39

In my app, I got a UINavigationController. Unfortunately, when I rotate the device and the interface orientation changes, the UINavigationBar doesn\'t change its height. In

相关标签:
8条回答
  • 2020-12-08 12:38

    I just had this error as well, and although it's probably not for the same reason I'd like to post it here to help anyone else that goofs.

    If you're overriding any willRotateToInterface methods, remember to call super

    I blanked on that, but once I saw the accepted answer it came to me.

    0 讨论(0)
  • 2020-12-08 12:42

    I just tried a few things just within Interface Builder and Xcode and as long as you use the UINavigationBarController as RootViewController it works as described - getting smaller. Did you change any things within the Controller itself or in parts of how the Controller is loaded? Especially concerning the firing of events? I had some bad expiriences with the UITabBarController in terms of breaking the proper messaging and got some 'interessting' view side effects. Just a try and a guess.

    0 讨论(0)
提交回复
热议问题