user1094081
user1094081

Reputation:

Tabbed application and navigation bar (with title and icons)

In a tabbed application, is it possible to have a navigation bar WITHOUT having to use an entire UINavigationController as a UIViewController? I simply need a navigation bar to position an icon on the right (it should simply open a modal). Of course, I could "fake" it with a UIView, but it's not very elegant.

Upvotes: 0

Views: 49

Answers (1)

glyvox
glyvox

Reputation: 58149

This is possible with a UINavigationBar placed on the top of a view controller.

It is possible to create one from the storyboard, too. Look for the "Navigation Bar" element in the IB Inspector.

Navigation Bar in inspector

This will behave just like a navigation controler's nav bar, with the exception of the navigation functions.

Upvotes: 2

Related Questions