objective c - UIActionSheet not rotating in landscape mode? -


i have uiactionsheet , set it's view this:

[popup showinview:[[uiapplication sharedapplication] keywindow]]; 

this works fine in portrait mode, when switch landscape, stays portrait. doing wrong? thanks.

you're showing in window (which not rotated), rather in view controller's view (which is). pass main view of currently-visible view controller instead, or use showfromtabbar: or showfromtoolbar: on iphone or showfrombarbuttonitem:animated: or showfromrect:inview:animated: on ipad.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -