I have an existing UITableViewController that was previously being used in a UINavigationController.
I need to convert it to be presented as a modal view. However, I still want to have a navigation bar at the top. I know this sounds strange- why not present it in the UINavigationController if I want a UINavBar? I want to present it without the UITabBarController that is associated with my UINavigationController.
I tried opening the XIB, adding a new view, moving the UITableView to be a subview and adding a NavigationBar to that new view as well. However this doesn't seem to make any impact and the whole tableview is still presented - no nav bar is visible. I think this is because the class is a subclass of UITableViewController.
Do I need to convert this to a UIViewClass? Is there a good approach to adding a navbar in code or via Interface Builder to an existing UITableViewController?
Thanks for any advice on how to approach this.