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 Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2009, 02:08 PM   #1 (permalink)
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Question Combining Tab Bar and Nav Bar in Application: Tutorial Request

I would appreciate a tutorial for combining Tab Bar and Nav Bar into a single multiview application (e.g. iPod application with Nav bar at top and tab bar at bottom). I've seen tutorials on each independently, and I'm able to get those to work if I start with the appropriate Xcode template. Trying to combine the two is quite confusing though. Is it easier to start with a Tab Bar application template and add the navigation controller code, or vice versa?
DenVog is offline   Reply With Quote
Old 04-03-2009, 06:23 PM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 1
Default

I second this! that would be a great tutorial! I'm still searching for one. If I find one, I will post it here.
ghoti is offline   Reply With Quote
Old 05-11-2009, 01:42 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 23
Lightbulb

Quote:
Originally Posted by DenVog View Post
I would appreciate a tutorial for combining Tab Bar and Nav Bar into a single multiview application (e.g. iPod application with Nav bar at top and tab bar at bottom). I've seen tutorials on each independently, and I'm able to get those to work if I start with the appropriate Xcode template. Trying to combine the two is quite confusing though. Is it easier to start with a Tab Bar application template and add the navigation controller code, or vice versa?
Hi,

To add a navigation bar to your tabbar application is easy, all you have to do is
create an instance of :

UINavigationController *mynavcontroller;

in your ViewController ".h" file

then in your ".m" file in the ViewDidLoad method add this:

mynavcontroller = [[UIViewController alloc] init];
[self.view addSubView:mynavcontroller];

To add a new viw to the havigation do the following:

[self.navigationController pushViewController:yourviewcontroller animated:YES];
reembertoparada is offline   Reply With Quote
Old 05-11-2009, 01:44 PM   #4 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 23
Lightbulb

Quote:
Originally Posted by DenVog View Post
I would appreciate a tutorial for combining Tab Bar and Nav Bar into a single multiview application (e.g. iPod application with Nav bar at top and tab bar at bottom). I've seen tutorials on each independently, and I'm able to get those to work if I start with the appropriate Xcode template. Trying to combine the two is quite confusing though. Is it easier to start with a Tab Bar application template and add the navigation controller code, or vice versa?
Hi,

To add a navigation bar to your tabbar application is easy, all you have to do is
create an instance of :

UINavigationController *mynavcontroller;

in your ViewController ".h" file

then in your ".m" file in the ViewDidLoad method add this:

mynavcontroller = [[UIViewController alloc] init];
[self.view addSubView:mynavcontroller];

To add a new veiw to the navigationController do the following:

[self.navigationController pushViewController:yourviewcontroller animated:YES];
reembertoparada is offline   Reply With Quote
Reply

Bookmarks

Tags
multiview, nav bar, tab bar

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: 250
14 members and 236 guests
ADY, CKAmike, Dani77, dessicant, Duncan C, HemiMG, jakerocheleau, nick.keroulis, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
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 03:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0