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;

  1. i have series of view controllers chained navigation controller (this works fine),
  2. all of these view controllers support portrait mode (by design),
  3. in 1 of view controllers (the 'end' 1 actually) user can click table cell pop modal view controller (using presentmodalviewcontroller(...) of course)
  4. this modal view controller supports portrait , landscape modes (and works),
  5. when user clicks 'done' button on modal view controller pop , pass control parent view controller, however;
    1. if user in portrait mode when click 'done' parent displays fine,
    2. 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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -