I’m trying to animate my frame with rotation:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
self.toNextButton.transform = CGAffineTransformMakeRotation(180.0f);
[UIView commitAnimations];
But this code rotate frame around his center. How can I make rotation around right bottom corner of frame?
you need to change view.layer’s anchorPoints
and you should implement like this.