It's not super intuitive but you can make this happen.
The answer you linked covers half of the solution (Creating a UINavigationBar
and adding a UINavigationItem
to it).
You also need to actually add the navigation bar as a subview to your view.
[self.view addSubview:myNavigationBar];