• 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: Tue, 02 Apr 2013 13:53:49 -0700

On Apr 2, 2013, at 13:25 , Markus Spoettl <email@hidden> 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 this to rotation? IIRC there are other reasons the root view might be resized (e.g. squished to make room for the status bar or not? notifications?). You probably want to adjust your child view location in those cases too.

IAC you might be safer to avoid using the frame. If there's a transform involved in the view's rotation, then the frame property will be meaningless. (But IDK if there's actually a transform applied to the view during rotation, or whether there's just a rotating animation.)

_______________________________________________

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

  • 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