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 06-23-2010, 05:36 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Italy
Posts: 16
iFabG is on a distinguished road
Send a message via AIM to iFabG
Unhappy TabBarController switching issue

I'm getting crazy on this.

I've got a TabBarController with threw viewController and it's working ok in my app when I push the selection on the items.

When I try to call
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:2];
(index 2 exists and the problem is with the index 1 too), I see the tabBarItem at position 2 selected (I mean the button) but the view will not appear (remaining at position 0 of the array item). I see that the viewController selected works in my debugger console but the view just doesn't appear.

Why it doesn't work? I've used it in previous apps and apparently there's nothing different.

Thanx for any suggestion you can provide.

Fabrizio
iFabG is offline   Reply With Quote
Old 06-23-2010, 08:43 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 370
david_david is on a distinguished road
Default

I am using this
mytabBarController.selectedIndex = index;

to programmatically select a tab
__________________
lazy blogs
The Lord's holy name be praised.
david_david is offline   Reply With Quote
Old 06-23-2010, 09:02 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Italy
Posts: 16
iFabG is on a distinguished road
Send a message via AIM to iFabG
Default

Quote:
Originally Posted by david_david View Post
I am using this
mytabBarController.selectedIndex = index;

to programmatically select a tab
Thanx for you reply, but unfortunately it's the same result: tabBarItem selected ma the view remain unchanged.

iFabG is offline   Reply With Quote
Reply

Bookmarks

Tags
selectedviewcontroller, tabbarcontroller

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: 335
8 members and 327 guests
anothermine, Chickenrig, Domele, givensur, heshiming, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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