UIViewController rotation problem

Discussion in 'iOS Programming' started by Didier Guillion, Aug 13, 2008.

  1. Didier Guillion macrumors newbie

    Joined:
    Aug 13, 2008
    #1
    Hi,

    Apparently, when a UIViewController is created from Nib the current iPhone orientation is not taken into account.

    I create the view, I rotate the IPhone, it is Ok.
    I rotate the IPhone,I create the view the view is not rotated, partially hidden.

    I am working with the iPhone Simulator.

    Did somebody already encounter this ?
    Is there a trick ?

    Best regards
     
  2. slking macrumors newbie

    Joined:
    Aug 15, 2008
    #2
    Me too have same problem. Did you ever get an answer?. So did you solve it yourself? Please let me know what did you do? Thanks
     
  3. Didier Guillion thread starter macrumors newbie

    Joined:
    Aug 13, 2008
    #3
    Sorry, I forgotten to post the answer.

    After creating my subview I didn't added it to the main view using addView.
    So, the rotation event, applied to the main view, was not send to the hidden subview.

    Best regards
     

Share This Page