How to scale and rotate during single animateWithDuration call How to scale and rotate during single animateWithDuration call objective-c objective-c

How to scale and rotate during single animateWithDuration call


Just use the CGAffineTransformConcat method. Try:

[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut                 animations:^(void) {                     recognizer.view.transform = CGAffineTransformConcat(CGAffineTransformMakeRotation(DegreesToRadians(540)), CGAffineTransformMakeScale(1.0, 1.0));                     recognizer.view.backgroundColor = [[UIColor alloc] initWithRed:220.0/255.0 green:220.0/255.0 blue:220.0/255.0 alpha:1.0];                    }];

Hope that Helps!