Re: CAShapeLayer & CGAffineTransformMakeForRotation?
Re: CAShapeLayer & CGAffineTransformMakeForRotation?
- Subject: Re: CAShapeLayer & CGAffineTransformMakeForRotation?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Mon, 7 Dec 2009 14:39:55 -0500
float radians = DegreesToRadians((h*30+m/2));
CATransform3D hourTransform;
hourTransform = CATransform3DMakeRotation(radians, 0, 0, 1.0 );
[hourHandLayer setTransform:hourTransform];
I have a method called on a timer every second and the hands update from it.
On Mon, Dec 7, 2009 at 2:37 PM, Kyle Sluder <email@hidden> wrote:
> On Mon, Dec 7, 2009 at 11:32 AM, Eric E. Dolecki <email@hidden>
> wrote:
> > I don't see a CGPathCreateImmutable() anywhere in the docs.
>
> Sorry, I was thinking in NSBezierPath terms.
>
> > I did solve my problem though.
>
> How did you do that? Did you do what I recommended, something else, or
> both?
>
> --Kyle Sluder
>
--
http://ericd.net
Interactive design and development
_______________________________________________
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