Problem drawing in landscape orientation when using an addition UIWindow
Problem drawing in landscape orientation when using an addition UIWindow
- Subject: Problem drawing in landscape orientation when using an addition UIWindow
- From: Laurent Daudelin <email@hidden>
- Date: Fri, 29 Mar 2013 12:54:24 -0700
So, I'm trying to use a replacement for UIActionSheet that I found on CocoaControls. It's called BlockActionSheet because, in addition to provide more customization to the sheet (like a larger title), it also works with blocks for the buttons you add.
The only problem is when you rotate an iPhone in landscape mode, even when the sheet is not up. It uses a subclass of UIWindow to do its thing and after reading on the subject, it seems that UIWindow's never rotate and they always work as if in portrait mode. I read that the rootViewController of the UIWindow will take care of rotation. I tried very late yesterday to insert a basic rootViewController for that UIWindow subclass but it didn't work. I'm obviously missing a few parts here and there.
In any case, does anyone know or could point me toward some code that shows how to use an additional window in a UIApplication and, more importantly, shows how to handle the rotation through the rootViewController? I don't really need a class on what a rootViewController is, I pretty much know what it is. I just need to know when creating a second one programmatically (besides the default one) what I have to do in order to support device orientation.
Thanks in advance!
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden