iOS rotate to interface orientation problem
iOS rotate to interface orientation problem
- Subject: iOS rotate to interface orientation problem
- From: Leon Qiao <email@hidden>
- Date: Mon, 18 Apr 2011 19:30:03 +0800
Dear all,
Recently, I need to do the following:
1. add a sub view of a view controller onto the window.
2. Make it fit the bottom of the window. That is, the bottom side of the
view and the bottom of the window will
coincide.
3. When the device rotated, the height of the subview will not be changed,
but I need to change the width, so
that it will fit the width of the window(for iPad, 1024 or 768 pixels).
But it feels like the old understanding of the rotate user interface
orientation is not correct. Would you please tell me
where is the right place that I should put the modification frame code. For
some reason, I don't want to use the auto-resizing mask here. Should I put
it into the "didRotateFromInterfaceOrientation" or
"willRotateToInterfaceOrientation", or
"willAnimateRotateToInterfaceOrientation" method, and how should I do it?
Should I consider the transform of its super view?
Thanks a lot!
--
Best regards
Leon
_______________________________________________
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