NOTE This note is written based on Xcode version 9.0 beta 6 (9M214v) and its simulator binary.
iOS 11 changes UINavigationBar
a lot, not just only for its large title, but also the internal view hierarchy and lay outing views are changed. This is a small note about UINavigationBar
behavior on iOS 11, mainly focusing on migrating the application to iOS 11.
UINavigationBar
has been using manual lay outing until iOS 10, so all its content views like titleView
has been directly child view of the UINavigationBar
. However, since iOS 11, it is using auto layout with bunch of layout guides to lay out its content views in its own internal container view, _UINavigationBarContentView
.