This is my first day trying to write an iOS app, having followed the tutorials on the Apple site and a few others, so be gentle. It's actually going pretty well so far!
My main view is a list of company contacts. Tapping on a contact segues to a view showing that contact's details. I've embedded my views in a Navigation view, and the navigation all works fine. On the contact details view, the view title (
What you're seeing is indeed the correct/expected behavior.
If you don't like that back button text, you can always change or remove it:
let backButtonItem: UIBarButtonItem = UIBarButtonItem() backButtonItem.title = "" // Set your custom text here navigationItem.backBarButtonItem = backButtonItem
If you want to do a multi-line title you'll have to customize it by either creating your own
UINavigationBar subclass or by setting a custom
titleView on your
UINavigationItem and setting a custom view in which you render multiple lines.