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

Re: UIView final frame after device rotation

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

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 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 device is rotated. No,

Re: UIView final frame after device rotation

2013-04-02 Thread Quincey Morris
On Apr 2, 2013, at 14:21 , Markus Spoettl 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 be no transform any m

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 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 new location agrees w

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 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 tryin

Re: UIView final frame after device rotation

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

Re: UIView final frame after device rotation

2013-04-02 Thread David Duncan
On Apr 2, 2013, at 1:25 PM, Markus Spoettl 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? >> >> Typically

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 h

Re: UIView final frame after device rotation

2013-04-02 Thread David Duncan
On Apr 2, 2013, at 10:59 AM, Markus Spoettl 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 control

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 rot