iOS Navbar starts as a small instead of large iOS

2019-08-29 05:40发布

When I launch my app, my Navbar automatically starts as a small one, but I have specified in my code to use large navigation bars: navigationController?.navigationBar.prefersLargeTitles = true, I'm using a collectionView in the same ViewController.

Every time I launch my app I have to scroll down to get the iOS 11 style Navbar to appear. What could cause this problem?

Result when I launch my app: initial

Result when I slide down and what it should look like when the app initially launches expected

Storyboard ViewController layout

1条回答
Luminary・发光体
2楼-- · 2019-08-29 06:08

In your Storyboard, select the navbar, and in the attributes selector choose the following option:

enter image description here

查看更多
登录 后发表回答