Re: UIView final frame after device rotation
Re: UIView final frame after device rotation
- Subject: Re: UIView final frame after device rotation
- From: Markus Spoettl <email@hidden>
- Date: Wed, 03 Apr 2013 19:26:02 +0200
On 4/3/13 6:42 PM, Quincey Morris wrote:
bounds and center are correct at all times. However, I need the view's frame
in screen coordinates because I'm positioning an independent overlay window,
not a subview. Since the transformation messes with -convertRect:from/toView:
in my view hierarchy, I have no idea how to get to the frame I'm interested
in. Any ideas?
It might be easier just not to work with the frame at all. I suspect you can use
'convertPoint:…' on the center to get to the coordinate system you need for the
attached view, then use that and the bounds to compute the attached view's
center and bounds.
I'll try that, thanks for the suggestion!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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