Re: UIView final frame after device rotation

2013-04-03 Thread Markus Spoettl
On 4/3/13 12:47 AM, Quincey Morris wrote: On Apr 2, 2013, at 14:21 , Markus Spoettl ms_li...@shiftoption.com mailto:ms_li...@shiftoption.com wrote: Not sure if I understand what you're saying, but if that was the case, the view's frame I'm attaching the overlay to would turn out wrong if the

Re: UIView final frame after device rotation

2013-04-03 Thread Quincey Morris
On Apr 3, 2013, at 00:16 , Markus Spoettl ms_li...@shiftoption.com 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

Re: UIView final frame after device rotation

2013-04-03 Thread Markus Spoettl
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

UIView final frame after device rotation

2013-04-02 Thread Markus Spoettl
Hi, I have a hard time figuring out how to get the frame (in the window coordinate system) a view will rotate to, when the rotation has just begun. I'm observing UIApplicationDidChangeStatusBarFrameNotification on NSNotification's defaultCenter. When this notification is delivered, the

Re: UIView final frame after device rotation

2013-04-02 Thread David Duncan
On Apr 2, 2013, at 10:59 AM, Markus Spoettl ms_li...@shiftoption.com wrote: I have a hard time figuring out how to get the frame (in the window coordinate system) a view will rotate to, when the rotation has just begun. What are you trying to do? Typically you don't need to worry about

Re: UIView final frame after device rotation

2013-04-02 Thread Markus Spoettl
On 4/2/13 8:37 PM, David Duncan wrote: I have a hard time figuring out how to get the frame (in the window coordinate system) a view will rotate to, when the rotation has just begun. What are you trying to do? Typically you don't need to worry about this. The root view controller's view will

Re: UIView final frame after device rotation

2013-04-02 Thread David Duncan
On Apr 2, 2013, at 1:25 PM, Markus Spoettl ms_li...@shiftoption.com wrote: On 4/2/13 8:37 PM, David Duncan wrote: I have a hard time figuring out how to get the frame (in the window coordinate system) a view will rotate to, when the rotation has just begun. What are you trying to do?

Re: UIView final frame after device rotation

2013-04-02 Thread Quincey Morris
On Apr 2, 2013, at 13:25 , Markus Spoettl ms_li...@shiftoption.com 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

Re: UIView final frame after device rotation

2013-04-02 Thread Markus Spoettl
On 4/2/13 10:39 PM, David Duncan wrote: On Apr 2, 2013, at 1:25 PM, Markus Spoettl ms_li...@shiftoption.com wrote: On 4/2/13 8:37 PM, David Duncan wrote: I have a hard time figuring out how to get the frame (in the window coordinate system) a view will rotate to, when the rotation has just

Re: UIView final frame after device rotation

2013-04-02 Thread Markus Spoettl
On 4/2/13 10:53 PM, Quincey Morris wrote: On Apr 2, 2013, at 13:25 , Markus Spoettl ms_li...@shiftoption.com mailto:ms_li...@shiftoption.com 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

Re: UIView final frame after device rotation

2013-04-02 Thread Quincey Morris
On Apr 2, 2013, at 14:21 , Markus Spoettl ms_li...@shiftoption.com wrote: Not sure if I understand what you're saying, but if that was the case, the view's frame I'm attaching the overlay to would turn out wrong if the device is rotated. No, once the rotation is complete (at least), there'd