• 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: CALayer and View controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer and View controls


  • Subject: Re: CALayer and View controls
  • From: David Duncan <email@hidden>
  • Date: Fri, 14 Nov 2008 09:02:39 -0800

On Nov 14, 2008, at 8:10 AM, Fabrizio Guglielmino wrote:

in some previous posts I was looking for information about CALayer
rotation and now I can rotate layer using core animation.
This mail it's about a strange behaviour, in my simple test I have a
single View and a little image loaded as content of main layer.
in the bottom of View there is a button and when I press this button
rotation starts. The strange behaviour is that also the button rotate
but I set bounds and position of CALafer to be in the middle of the
view and half size of it.


When you configure a view to be layer backed (setWantsLayer:YES) all subviews of that view become layer backed as well. Any transforms (in this case rotation) that you apply to that layer also affect all sublayers (which the layer for your button is).

If you don't want the button to rotation, then you need to place it outside of the view/layer that is being rotated.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: CALayer and View controls
      • From: "Fabrizio Guglielmino" <email@hidden>
References: 
 >CALayer and View controls (From: "Fabrizio Guglielmino" <email@hidden>)

  • Prev by Date: CALayer and View
  • Next by Date: Re: Adding an NSButton to a layer-hosted view
  • Previous by thread: CALayer and View controls
  • Next by thread: Re: CALayer and View controls
  • Index(es):
    • Date
    • Thread