I am using CGAffineTransformMakeRotation to rotate my button.But my button getting scaled(big or small) according to my value to rotate.How to stop scaling of my button? sample code i have used
UIView.animateWithDuration(2.5, animations: {
self.btnMeter.transform = CGAffineTransformRotate(CGAffineTransformIdentity, (45 * CGFloat(M_PI)) / 180.0)
})
I have kept my button on UIView.After that I have rotated my view using the same code.It works fine.