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 05-23-2008, 01:59 PM   #1 (permalink)
New Member
 
Join Date: May 2008
Posts: 3
Default "Tab bars from scratch in Beta 4" Tutorial question

Hi,

What can I do to make for example the button RED to assign that color to the text and also to send me to the view where is the text?

Thanks
raptorlol is offline   Reply With Quote
Old 05-23-2008, 03:34 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 53
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

yeah!! i thought that was in going to be the tutorial.. :/
it would be great!
turinreza is offline   Reply With Quote
Old 05-23-2008, 10:27 PM   #3 (permalink)
MDM
 
MDMstudios's Avatar
 
Join Date: Apr 2008
Location: MT
Posts: 128
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

Quote:
Originally Posted by raptorlol
Hi,

What can I do to make for example the button RED to assign that color to the text and also to send me to the view where is the text?

Thanks
So, are you wondering how to change the text inside the button, or when you click the button not only does it change the color of the text, but that it also changes the view over to the the view with the label in it?
__________________
iphone.MDMstudios@gmail.com


MDMstudios is offline   Reply With Quote
Old 05-24-2008, 05:02 PM   #4 (permalink)
New Member
 
Join Date: May 2008
Posts: 3
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

Quote:
Originally Posted by MDMstudios
Quote:
Originally Posted by raptorlol
Hi,

What can I do to make for example the button RED to assign that color to the text and also to send me to the view where is the text?

Thanks
when you click the button not only does it change the color of the text, but that it also changes the view over to the the view with the label in it?
Exactly! Any ideas?

Thanks!
raptorlol is offline   Reply With Quote
Old 05-24-2008, 06:45 PM   #5 (permalink)
MDM
 
MDMstudios's Avatar
 
Join Date: Apr 2008
Location: MT
Posts: 128
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

Okay, so this is what you need to do. In your UICustomObject ( the solid yellow one ) you need to add in another IBOutlet of the type UITabBarController. Once you have done that your code in your UICustomObject should look something like this.
Code:
 
- (IBAction)buttonWasPressed {
text.textColor = [UIColor redColor];

tabBarController.selectedIndex = 1
The selectedIndex protocol there changes which is the selected item in the tab bar controller. The first item in your tab bar is 0 the second one is 1 (and so on and so forth).

This help?
__________________
iphone.MDMstudios@gmail.com


MDMstudios is offline   Reply With Quote
Old 05-26-2008, 02:25 PM   #6 (permalink)
New Member
 
Join Date: May 2008
Posts: 3
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

Quote:
Originally Posted by MDMstudios
Okay, so this is what you need to do. In your UICustomObject ( the solid yellow one ) you need to add in another IBOutlet of the type UITabBarController. Once you have done that your code in your UICustomObject should look something like this.
Code:
 
- (IBAction)buttonWasPressed {
text.textColor = [UIColor redColor];

tabBarController.selectedIndex = 1
The selectedIndex protocol there changes which is the selected item in the tab bar controller. The first item in your tab bar is 0 the second one is 1 (and so on and so forth).

This help?
Yeap! You are the man!

Where did you find this? I couldn't find anything.

Thanks
raptorlol is offline   Reply With Quote
Old 05-26-2008, 02:39 PM   #7 (permalink)
MDM
 
MDMstudios's Avatar
 
Join Date: Apr 2008
Location: MT
Posts: 128
Default Re: "Tab bars from scratch in Beta 4" Tutorial question

Quote:
Originally Posted by raptorlol
Quote:
Originally Posted by MDMstudios
Okay, so this is what you need to do. In your UICustomObject ( the solid yellow one ) you need to add in another IBOutlet of the type UITabBarController. Once you have done that your code in your UICustomObject should look something like this.
Code:
 
- (IBAction)buttonWasPressed {
text.textColor = [UIColor redColor];

tabBarController.selectedIndex = 1
The selectedIndex protocol there changes which is the selected item in the tab bar controller. The first item in your tab bar is 0 the second one is 1 (and so on and so forth).

This help?
Yeap! You are the man!

Where did you find this? I couldn't find anything.

Thanks
No problem.

If you go on over to Xcode and then to help, and then to documentation it has all the class references that you will need, or if your documentation isn't updated you can go online to apples site and go to the iphone section of the site, and somewhere in there they have the documentation I believe.
__________________
iphone.MDMstudios@gmail.com


MDMstudios 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show "Turn off Airplane Mode..." network dialog? bonehead iPhone SDK Development 8 01-18-2010 11:37 PM
Nicely centered "Loading" spinner (activity indicator) ? bonehead iPhone SDK Development 4 09-01-2009 03:32 PM
Settings "Clear History" button brianr iPhone SDK Development 8 11-19-2008 01:54 PM
where is "GLTeapot" in BETA 5? rick iPhone SDK Development 4 05-08-2008 09:47 PM
Problem with "Tab bars with Interface Builder" tutorial christian iPhone SDK Development 0 04-21-2008 11:50 AM


» Advertisements
» Online Users: 250
21 members and 229 guests
ADY, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, nobre84, prchn4christ, Rudy, ryantcb, Speed, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
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:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0