iphone - UIView rotation, modal view landscape and portrait, parent fails to render -
i've hit bit of roadblock hope in here can me out with. i'll describe 'state of play' first, , issue is, here goes;
- i have series of view controllers chained navigation controller (this works fine),
- all of these view controllers support portrait mode (by design),
- in 1 of view controllers (the 'end' 1 actually) user can click table cell pop modal view controller (using presentmodalviewcontroller(...) of course)
- this modal view controller supports portrait , landscape modes (and works),
- when user clicks 'done' button on modal view controller pop , pass control parent view controller, however;
- if user in portrait mode when click 'done' parent displays fine,
- if user in landscape mode when click 'done' parent displays totally white, blank screen (that covers whole screen). if controller not know how render in landscape , doesn't bother.
i'd able have parent view render in portrait no matter orientation of phone when user clicks 'done' button.
various forum posts suggest using uidevice method 'setorientation' (but undocumented , our app rejected apparently). suggestion set 'statusbarorientation' portrait in 'viewwillappear' method had no effect.
i had similar problem not long ago. app rejected because of using setorientation
method. i'd disabled done button in landscape mode. seems easiest way.
Comments
Post a Comment