0

If I set a UINavigationController as my self.window.rootViewController in AppDelegate, when I rotate the device the UINavigationBar resizes to be slightly smaller.

How can I mimic this behaviour when using a tab controller as my root view? I've tried setting the AutoresizingMask properly on the tab bars child navigation controller views, but to no avail. The view rotates properly but the UINavigationBar stays the same 44pt height.

I've tried changing the frame during my layoutSubviews method as so: self.navigationController.navigationBar.frame.size.height = 32.0 which kinda works but is buggy and doesn't feel correct.

squarefrog
  • 4,750
  • 4
  • 35
  • 64

1 Answers1

1

Somehow I missed this answer when researching earlier. Looks like it fixes the problem.

Community
  • 1
  • 1
squarefrog
  • 4,750
  • 4
  • 35
  • 64