Autorotate and creating UIWindow programmatically


Hi All,

Autorotate was not working for me. Thanks to the following post - viewtopic.php?f=498&t=9608, I was saved quite a bit of hair-pulling.

Removing the following line of code restored auto-rotate.

Can you please tell me why this was an issue? And also, why the app still works even if we don’t create a UIWindow. Is an instance of UIWindow created by default already?