Affinity
Affinity

Reputation: 383

Positioning the large title of a UINavigationBar

UINavigationBar

In the layout above, how would I adjust(indent) the position of the title so that it would line up with the contents of UITableViewCells?

Upvotes: 2

Views: 939

Answers (2)

Vonkad
Vonkad

Reputation: 11

If you want to set the left space from large title, try this:

navigationController!.navigationBar.layoutMargins.left = 32

Upvotes: 1

Ketan Parmar
Ketan Parmar

Reputation: 27428

It is a default behavior of your navigation bar's large title. You should not change the position of your navigation bar's title. Instead you should manage your tableview's cell and label of it so that it can align properly with title!

Upvotes: 1

Related Questions