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-09-2009, 02:44 AM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 5
baby7-23 is on a distinguished road
Default UITabBarController support orientation problem

i have a tabBarController which contain two tab, i would like 1 tab is support orientation but another one not,how to do that? i have tried the code:

Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
if(self.tabBarController.selectedIndex==1){
        NSLog(@"rotate");
return YES;
}
else{
        NSLog(@"no rotate");
        return  (interfaceOrientation == UIInterfaceOrientationPortrait);
}

}
but after i rotating the view2 to landscape mode and back to view1, view1 become landscape as well until i rotate it back to potrait,but the thing i need is view1 always remain potrait when it appear,can help?
baby7-23 is offline   Reply With Quote
Old 06-25-2009, 04:10 AM   #2 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 3
sandeepasrani is on a distinguished road
Default

did you solve this problem ?
sandeepasrani is offline   Reply With Quote
Reply

Bookmarks

Tags
orientation, uitabbarcontroller

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: 337
7 members and 330 guests
givensur, ipodphone, jbro, mer10, mtl_tech_guy, Punkjumper, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,881
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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