• 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
Re: UIView final frame after device rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIView final frame after device rotation


  • Subject: Re: UIView final frame after device rotation
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 03 Apr 2013 09:42:56 -0700

On Apr 3, 2013, at 00:16 , Markus Spoettl <email@hidden> 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.

_______________________________________________

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


  • Follow-Ups:
    • Re: UIView final frame after device rotation
      • From: Markus Spoettl <email@hidden>
References: 
 >UIView final frame after device rotation (From: Markus Spoettl <email@hidden>)
 >Re: UIView final frame after device rotation (From: David Duncan <email@hidden>)
 >Re: UIView final frame after device rotation (From: Markus Spoettl <email@hidden>)
 >Re: UIView final frame after device rotation (From: Quincey Morris <email@hidden>)
 >Re: UIView final frame after device rotation (From: Markus Spoettl <email@hidden>)
 >Re: UIView final frame after device rotation (From: Quincey Morris <email@hidden>)
 >Re: UIView final frame after device rotation (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Providing a Service without activating an app
  • Next by Date: Re: UIView final frame after device rotation
  • Previous by thread: Re: UIView final frame after device rotation
  • Next by thread: Re: UIView final frame after device rotation
  • Index(es):
    • Date
    • Thread