TableView in UIView or navigation controller with other objects
Quick question. I know how a navigation controller works and how to popular the table view in it with data. However, I haven't been able to figure out how to get a navigation controller or table view controller into a UIView with other objects.
So, for instance, if I wanted two buttons in the view as well as a table view below them. For example, the phone.app has a label and image above the table view. How is this done? Is it navigation controllers within uiviews or tableviewcontroller within uiviews?
A navigation controller is used to manage your view hierarchy - specifically, to keep track of various view controllers and their views and transition between them. What it sounds like you'd like to do is contained within one view, meaning navigation controllers have nothing to do with what you're looking for.
The simplest way to have a tableview with some other UI objects is probably to use a TableView as the main view itself, and put the buttons in its header. I have to run but look up tableviews and their headers and it should lead you down the right path.
A navigation controller is used to manage your view hierarchy - specifically, to keep track of various view controllers and their views and transition between them. What it sounds like you'd like to do is contained within one view, meaning navigation controllers have nothing to do with what you're looking for.
The simplest way to have a tableview with some other UI objects is probably to use a TableView as the main view itself, and put the buttons in its header. I have to run but look up tableviews and their headers and it should lead you down the right path.
Sorry, I didn't explain it well. I don't want the button to be in the title bar. I want the top half to be ui elements like text fields and buttons and what not and the bottom half to be a table view. However, I want that bottom half table view to also be a navigation view and push new items onto the screen...
Sorry, I didn't explain it well. I don't want the button to be in the title bar. I want the top half to be ui elements like text fields and buttons and what not and the bottom half to be a table view. However, I want that bottom half table view to also be a navigation view and push new items onto the screen...
It's not the title bar. You can set the tableview's tableHeaderView property to be any kind of view you want, as well as modify its size.