• 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: Markus Spoettl <email@hidden>
  • Date: Wed, 03 Apr 2013 19:26:02 +0200

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

I'll try that, thanks for the suggestion!

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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


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>)
 >Re: UIView final frame after device rotation (From: Quincey Morris <email@hidden>)

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