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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 08-09-2010, 06:13 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 5
paulkreuzer is on a distinguished road
Default Please Help: Tab Bar + Navigation Buttons

Please help me with this.

I'm trying to create an app with a tab bar and view swithing buttons.
I was able to do both seperately, one app with a tab bar to switch between views and one app with buttons to switch views.
But when I try to connect the two it doesn't work.

I got an app where the main window has a tab bar switching between viewController1, viewController2, viewController3, viewController4 and viewController 5.

Now I want to add 4 buttons to viewController1 that direct me to ViewController1v1, ViewController1v2, ViewController1v3 and ViewController1v4. And a button on each of theese viewControllers that take me back.
I don't want a navigation controller, just simple Round Rect Buttons.

How do I do that?
Do I have to delete the viewController1 .h & .m files and the View in the .xib file and then act like viewController1.xib is the MainWindow.xib of the "Navigation Buttons App"?

And what do I need to do different if I try some tutorials and don't want to create single apps for all of them but include them all as a view in my tabBar app?

Thanks,
Paul
paulkreuzer is offline   Reply With Quote
Old 08-09-2010, 06:17 PM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

Ok Im a little confused... so u have a tab bar app and the views inside of that have buttons that will take you to more views.

The easiest way to do that would be to actually use navigation controllers (I knw u said u didnt want to) but then just hid the nav bar and everything and itll work great. Then to load a view controller just use pushViewController and the custon back buttons u wanna make just need to call popViewController.
kapps11 is offline   Reply With Quote
Old 08-09-2010, 07:45 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 5
paulkreuzer is on a distinguished road
Default

I tried it with a navigation controller again and this time it worked.
the problem was that I just had put them both in the mainwindow.xib window in the interface builder instead of putting the navigation controller into the tab bar controller...

but i don't know how to hide the navigation bar, could you tell me?
paulkreuzer is offline   Reply With Quote
Old 08-09-2010, 07:59 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
Jake is on a distinguished road
Default

Quote:
Originally Posted by paulkreuzer View Post
I tried it with a navigation controller again and this time it worked.
the problem was that I just had put them both in the mainwindow.xib window in the interface builder instead of putting the navigation controller into the tab bar controller...

but i don't know how to hide the navigation bar, could you tell me?
I can't be sure because I'm not near my computer, but I'm pretty sure that there's a checkbox in Interface Builder to hide the navigation bar. It should be the "hidden" attribute.
Jake is offline   Reply With Quote
Old 08-09-2010, 09:38 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

Im not on my comp either, but if you cant do it in IB in code its just like

[navController setNavigationBarHidden:YES animated:NO]; or something like that
kapps11 is offline   Reply With Quote
Old 08-09-2010, 09:52 PM   #6 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 5
paulkreuzer is on a distinguished road
Default

Quote:
Originally Posted by Jake View Post
I can't be sure because I'm not near my computer, but I'm pretty sure that there's a checkbox in Interface Builder to hide the navigation bar. It should be the "hidden" attribute.
Thanks, I just had to uncheck "show navigation bar"

Thats all I wanted to know for today, but I'll probably have alot more questions tomorrow
paulkreuzer is offline   Reply With Quote
Reply

Bookmarks

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: 327
8 members and 319 guests
ilmman, iram91419, linkmx, nadav@webtview.com, Objective Zero, Paul Slocum, stanny, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

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