Re: How to (slowly) rotate a view
Re: How to (slowly) rotate a view
- Subject: Re: How to (slowly) rotate a view
- From: Kyle Sluder <email@hidden>
- Date: Sun, 05 Aug 2012 11:01:28 -0700
On Aug 5, 2012, at 10:34 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
> I tried instead:
> // opacity is 0.5
> [ CATransaction begin];
> [ CATransaction setAnimationDuration: 9 ];
> layer.opacity = 1;
> [ CATransaction commit];
>
> [ CATransaction begin];
> [ CATransaction setAnimationDuration: 9 ];
> layer.opacity = 0.5;
> [ CATransaction commit];
> but I only see the resulting opacity of 0.5.
>
> The view controller is a child of another view controller. The view is subview of another view.
Any reason you're animating the layer properties instead of the view properties? UIView exposes transform and opacity, and has its own animation methods.
--Kyle Sluder
_______________________________________________
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