On Aug 5, 2012, at 10:11 AM, "Gerriet M. Denkmann" <gerr...@mdenkmann.de> wrote:
> I use this code (iOS 5.1): > CGAffineTransform m = { c, +s, -s, c, 0, 0 }; // rotation, s = > sin(angle), c = cos(angle) > CALayer *layer = self.view.layer; // view is UIView, self is > subclass of UIViewController > [ CATransaction begin]; > [ CATransaction setAnimationDuration: 9 ]; > [ layer setAffineTransform: m ]; > [ CATransaction commit]; > The view rotates ok, but does it instantly, instead of taking 9 seconds. > > What am I doing wrong? What happens if you use the transform property instead of setAffineTransform:? --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com