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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -