Re: UIView final frame after device rotation
Re: UIView final frame after device rotation
- Subject: Re: UIView final frame after device rotation
- From: Quincey Morris <email@hidden>
- Date: Tue, 02 Apr 2013 13:53:49 -0700
On Apr 2, 2013, at 13:25 , Markus Spoettl <email@hidden> wrote:
> I'm displaying an overlay window which is "attached" to the view in question. When the rotation takes place, it needs to realign itself so that it's new location agrees with what the view displays (in my context).
Isn't it a mistake to tie this to rotation? IIRC there are other reasons the root view might be resized (e.g. squished to make room for the status bar or not? notifications?). You probably want to adjust your child view location in those cases too.
IAC you might be safer to avoid using the frame. If there's a transform involved in the view's rotation, then the frame property will be meaningless. (But IDK if there's actually a transform applied to the view during rotation, or whether there's just a rotating animation.)
_______________________________________________
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