I'm still kind of a newbie, although I've built a couple of apps.
I can set up an app with a navigationbar when I create a "Navigation-Based Application", but if I want an introductory page that does NOT have a navigationbar and TableView, but rather the user clicks a button that takes him to a view containing a navigationbar and TableView, I can't seem to get that to work.
Is there any general setup advice you can give to send me in the right direction? I can't seem to figure out where the put the UINavigationController. I thought I'd make another view that contained a navigationcontroller, but I tried all sorts of permutations to no success.
I'm still kind of a newbie, although I've built a couple of apps.
I can set up an app with a navigationbar when I create a "Navigation-Based Application", but if I want an introductory page that does NOT have a navigationbar and TableView, but rather the user clicks a button that takes him to a view containing a navigationbar and TableView, I can't seem to get that to work.
Is there any general setup advice you can give to send me in the right direction? I can't seem to figure out where the put the UINavigationController. I thought I'd make another view that contained a navigationcontroller, but I tried all sorts of permutations to no success.
Thanks so much for any insight.
/StevenD
i think off the top of my head you gotta call that class from an initial view controller which is your start up screen to then load the nib file up with your navigation controller
(not on my mac to look at the code i had used before to do that kind of thing )
Okay, still trying. I created a *simple* new View-based project. The main view has only one button, which tells the app delegate to load the next view, which I want to have the navigationbar and the tableview.
That new view has a ViewController class, and a nib file. I put a navigation controller and a table view in the nib. I can get the new view to load when I press the button, but it doesn't show the table view. For the life of me, I can't figure out what is supposed to be connected to what in the nib file in Interface Builder.
Here's more. In my simple app, the second view, which is launched by a button on the home view, has in its nib:
a navigation controller, containing
a navigation bar
and a view controller. The view controller contains
a table view
and a navigation item.
If I connect the navigation bar's view in the connections pane to the File's Owner's view, then when the view is loaded, I see the navigation bar at the top, but not the tableview.
If I connect the tableview's view in the connections pane to the File's Owner's view, then the navigation bar's view connection is automatically deleted, and I see the tableview when the view is loaded, but not the navigation bar.
I think I'm getting closer, but I don't know how to have both the navigation bar and the tableview visible at the same time.