0

I customized the navigation bar frame(y position) so it shows on the bottom in iOS 9.x with code like:

self.navigationController.navigationBar.frame = CGRectMake(0, 320-32, oldRect.size.width, oldRect.size.height);

but it stops working in iOS 10. got something like the screenshot.the top part is covered too. Any idea how to fix this?enter image description here

sokold
  • 221
  • 2
  • 7
  • Use this: [self.navigationController.navigationBar layoutIfNeeded]; and try – KSR Sep 28 '16 at 03:55
  • You should be doing this way http://stackoverflow.com/a/31054978/790842 – iphonic Sep 28 '16 at 04:01
  • I don't need to change the height of the navgation bar, need to change the y position of the navgation bar.[self.navigationController.navigationBar layoutIfNeeded]; also doesn't seem to work, it worked in iOS 9.x but not in iOS 10. – sokold Sep 29 '16 at 12:29

0 Answers0