• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iOS: UIWindow orientation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: bindings via file's owner don't update
  • Next by Date: Re: bindings via file's owner don't update
  • Previous by thread: Re: bindings via file's owner don't update
  • Next by thread: Foundation vs Core Foundation
  • Index(es):
    • Date
    • Thread