PDA

View Full Version : UIViewController rotation problem




Didier Guillion
Aug 13, 2008, 03:02 AM
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



slking
Aug 18, 2008, 12:47 AM
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

Didier Guillion
Aug 18, 2008, 12:57 AM
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