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

View Single Post
Old 05-24-2008, 05:45 PM   #5 (permalink)
MDMstudios
MDM
 
MDMstudios's Avatar
 
Join Date: Apr 2008
Location: MT
Posts: 128
MDMstudios is an unknown quantity at this point
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
 

» Advertisements
» Online Users: 452
20 members and 432 guests
13dario13, 7twenty7, baja_yu, bhsu21, Bryan1, ClerurcifeDer, gdogdev, GraffitiCircus, guusleijsten, HowEver, iAppDeveloper, ilmman, MrFlexile, Paul Slocum, PavelMik, QuantumDoja, ryantcb, stanny, Steven.C, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,822
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.