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 09-19-2010, 01:56 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default Tabbarcontroller problem

Hi,

I added four view controllers in tabbarcontroller in appdelegate.

I can access tabbarcontroller properties in view controllers by calling the following method.

[self.tabBarController setSelectedIndex:0];


But i need to access the tabbarcontroller in .m file which is not a view controller.Its base class in uicontrol.

Thanks
iphonegamedeveloper is offline   Reply With Quote
Old 09-19-2010, 05:11 PM   #2 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

The .m file is still part of the view controller, so assuming that you've set everything up right, [self.tabBarController...] will still be valid.

Otherwise, I'm not quite sure what you're asking.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Old 09-20-2010, 12:05 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 316
iphonegamedeveloper is on a distinguished road
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by musicwind95 View Post
The .m file is still part of the view controller, so assuming that you've set everything up right, [self.tabBarController...] will still be valid.

Otherwise, I'm not quite sure what you're asking.
Hi musicwind.

Thanks for the reply.The .m file is not a part of view controller.So i cant use[self.tabbarcontroller]
iphonegamedeveloper is offline   Reply With Quote
Old 09-20-2010, 03:14 PM   #4 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

How is the .m file not part of the vc? What did you do?

Better question: What are you trying to do?
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 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: 307
14 members and 293 guests
2ndSegment, cayladv57, cgokey, dermotos, djohnson, Domele, Hamad, linkmx, markuschow, pungs, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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