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
Post a Comment