Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-20-2009, 06:58 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 153
Default Navigation bar not on app's home page

Hi,

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
StevenD is offline   Reply With Quote
Old 06-20-2009, 08:14 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: currently AZ
Posts: 112
Send a message via MSN to kingbombs
Default

Quote:
Originally Posted by StevenD View Post
Hi,

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 )
kingbombs is offline   Reply With Quote
Old 06-20-2009, 11:37 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 153
Default

Hi,

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.

/S
StevenD is offline   Reply With Quote
Old 06-21-2009, 12:29 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 153
Default

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.

/S
StevenD is offline   Reply With Quote
Old 09-14-2009, 06:09 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 12
Default

hello....

Did this ever get sorted? I am trying to do pretty much the same thing now and for the life of me i can't seem to figure it out.......
stubbsjoe is offline   Reply With Quote
Reply

Bookmarks

Tags
uinavigationcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 249
23 members and 226 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Dominus, dre, glenn_sayers, HemiMG, JasonR, karlam963, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:26 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0