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 01-05-2010, 08:13 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 2
Default UIActionSheet orientation

Hi guys!

Is there any way to set the orientation of the UIActionSheet programatically? My iPhone orientation is Portrait, but the UIActionSheet need to be Landscape. Can this be done?

So, my problem is that I don't want to rotate the rootviewcontroller to landscape mode, only the UIActionSheet. So is this possible somehow?
infinity320 is offline   Reply With Quote
Old 01-05-2010, 10:23 AM   #2 (permalink)
Persian Developer
 
Join Date: Mar 2009
Posts: 274
Default

Quote:
Originally Posted by infinity320 View Post
Hi guys!

Is there any way to set the orientation of the UIActionSheet programatically? My iPhone orientation is Portrait, but the UIActionSheet need to be Landscape. Can this be done?

So, my problem is that I don't want to rotate the rootviewcontroller to landscape mode, only the UIActionSheet. So is this possible somehow?
when you change you iphone to Landscape mode your alert view or action sheet , show in landscape mode u can try it with change the return code to return YES;


Quote:
- (BOOL)shouldAutorotateToInterfaceOrientationUIIn terfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return YES;
}
__________________
My Applications On the App Store


Momeks is offline   Reply With Quote
Old 01-06-2010, 04:47 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 2
Default

Quote:
Originally Posted by Momeks View Post
when you change you iphone to Landscape mode your alert view or action sheet , show in landscape mode u can try it with change the return code to return YES;
My Problem is that I don't want to change the whole view to landscape so I put 'retunr NO;'. I just want to change the UIActionSheet orientation to landscape.
infinity320 is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, objective-c, uiactionsheet

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: 253
19 members and 234 guests
2WeeksToGo, @sandris, AdamL, ADY, BrianSlick, Dani77, diyora, F_Bryant, GHuebner, HDshot, headkaze, mer10, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,748
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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