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 02-23-2011, 05:52 AM   #1 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default when an action sheet is visible in a mode, should it rotate in the other one?

Hi all,

I have an app that supports both orientations. When an action sheet is displayed in portrait mode, the view doesn't rotate in landscape mode. Should it be so? or normally the view should rotate and the action sheet resize?

Thank you in advance.

Fran
franium is offline   Reply With Quote
Old 02-23-2011, 06:42 AM   #2 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default

I've tried with Mail app and the action sheet doesn't rotate.
franium is offline   Reply With Quote
Old 02-23-2011, 08:26 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Atlanta, GA
Posts: 148
tripp13 is on a distinguished road
Default

Quote:
Originally Posted by franium View Post
Hi all,

I have an app that supports both orientations. When an action sheet is displayed in portrait mode, the view doesn't rotate in landscape mode. Should it be so? or normally the view should rotate and the action sheet resize?

Thank you in advance.

Fran
Depends on what orientations you coded your app to be viewed. What mail app? What device? Your question is quite vague. Explain what you want to do and show the code you have so far. If you have the shouldAutoRotateToDeviceOrientation method set to return YES, it should rotate with the view.
tripp13 is offline   Reply With Quote
Old 02-23-2011, 08:35 AM   #4 (permalink)
Registered Member
 
87vert's Avatar
 
Join Date: Sep 2010
Location: Pittsburgh
Posts: 172
87vert is on a distinguished road
Default

iPhone or iPad? as the action sheet's are different.

I have an action sheet in my iPad app and it rotates with my view. However I just discovered a small bug in it, when rotating the cancel button disappears, you can still just press outside of the action sheet to cancel so it is not a huge deal.
__________________
Wolfador Coding
Check out my apps:
Crazy Dog Daily Log || Crazy Spouse Daily Log || iCourtReport
87vert is offline   Reply With Quote
Old 02-23-2011, 09:57 AM   #5 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default

Quote:
Originally Posted by tripp13 View Post
Depends on what orientations you coded your app to be viewed. What mail app? What device? Your question is quite vague. Explain what you want to do and show the code you have so far. If you have the shouldAutoRotateToDeviceOrientation method set to return YES, it should rotate with the view.
Sorry... my second post was the answer I found.
I have an iPhone app that works in both orientations. When an action sheet becomes visible, it doesn't rotate by changing the orientation.
I tried with the Apple Mail app (that works in both orientations) and when an action sheet is visible, it doesn't rotate, so I think this is the "right" behaviour.
franium is offline   Reply With Quote
Old 02-23-2011, 11:59 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Atlanta, GA
Posts: 148
tripp13 is on a distinguished road
Default

Quote:
Originally Posted by franium View Post
Sorry... my second post was the answer I found.
I have an iPhone app that works in both orientations. When an action sheet becomes visible, it doesn't rotate by changing the orientation.
I tried with the Apple Mail app (that works in both orientations) and when an action sheet is visible, it doesn't rotate, so I think this is the "right" behaviour.
Look at the showInView line for your actionSheet in your action methods. If you use the showFromBarButtonItem, you can manipulate the orientations (NOTE* this probably isn't allowed on the iPhone due to limited screen real estate and probably won't work). In the iPad, the barButton works great and you place it to view in 'any'. I've never tried this style with the iPhone, so give it a shot and let us know.

Good luck.
tripp13 is offline   Reply With Quote
Old 02-24-2011, 02:58 AM   #7 (permalink)
Registered Member
 
franium's Avatar
 
Join Date: Nov 2010
Posts: 68
franium is on a distinguished road
Default

Quote:
Originally Posted by tripp13 View Post
Look at the showInView line for your actionSheet in your action methods. If you use the showFromBarButtonItem, you can manipulate the orientations (NOTE* this probably isn't allowed on the iPhone due to limited screen real estate and probably won't work). In the iPad, the barButton works great and you place it to view in 'any'. I've never tried this style with the iPhone, so give it a shot and let us know.

Good luck.
I use [actionSheet showInView:self.view]. I don't understand how I can use the showFromBarButtonItem, 'cause I have not an UIBarBottonItem. Do I miss something?
franium is offline   Reply With Quote
Reply

Bookmarks

Tags
landscape, landscape portrait rotate, 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: 374
18 members and 356 guests
Absentia, akphyo, apatsufas, BinHex, cpsclicker, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, mottdog, Music Man, PavelMik, teebee74, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

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