Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cathy88

macrumors member
Original poster
Aug 11, 2009
95
0
Hey,

I am trying to create an application with NavigationController. I was able to do this from following a youtube tutorial. But the tutorial did all the NavigationController stuff without the interface builder. The only time that was used was to load the actual Viewcontroller.

My question is that, is it possible to start a program with a Navigation-Based Application and modify it to take out the TableView rather have just some kind of root view that is a viewcontroller (not a table view).

When I try to make the modification the program always crashes
 
My question is that, is it possible to start a program with a Navigation-Based Application and modify it to take out the TableView rather have just some kind of root view that is a viewcontroller (not a table view).

Yes, it is possible.
 
NavigationControllers can be used with any view(s) you want. Most developers use it with tableViews so when the user pushes a new view from a tableViewCell, they can get back to the main view.
 
The most basic Navigation Controller inside Xcode, is the one with the tableview.
So quite easily, go to your XIB file, you see all the things inside your xib, delete the table view, drag a normal VIEW from the library, then press CTRL+Click'n'Drag to the view, and assign it to the value, View. Then, just build upon the view. And tadaaa. And don't forget to delete all the code of the UITableView :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.