iOS: UIWindow orientation
iOS: UIWindow orientation
- Subject: iOS: UIWindow orientation
- From: Phillip Mills <email@hidden>
- Date: Mon, 29 Nov 2010 12:05:42 -0500
While attempting to track movement during a long press, I was surprised to discover that the x direction of an application's UIWindow seems to be for the portrait x dimension no matter how the device is turned. Using [recognizer locationOfTouch:i inView:[recognizer view]] matches the apparent x/y direction of the rotated device while [recognizer locationOfTouch:i inView:nil] is only relative to portrait.
Even after seeing this, I'm having difficulty finding any documentation that describes it. (I'm curious whether I'm supposed to do something to keep the values consistent or whether that's just the way it is.) I'd assumed it would be mentioned in the gesture recognizer docs where it describes the option (or the UIWindow Class Reference, or the View Programming Guide) but I'm not seeing it. Suggestions of better places to look?_______________________________________________
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