iOS 11 navigation bar height customizing

后端 未结 11 848
无人共我
无人共我 2020-11-28 01:27

Now in iOS 11, the sizeThatFits method is not called from UINavigationBar subclasses. Changing the frame of UINavigationBar causes gli

11条回答
  •  一生所求
    2020-11-28 01:51

    Along with overriding -layoutSubviews and -setFrame: you should check out the newly added UIViewController's additionalSafereaInsets property (Apple Documentation) if you do not want the resized navigation bar hiding your content.

提交回复
热议问题