The UIRotationGestureRecognizer will trigger its assigned action as many times as it receives a notification that a multiple-finger rotational gesture has been performed. Expected that
lol()
will be called several times.
, , . UIView.animateWithDuration( ) .rotation UIRotationGestureRecognizer, , .
:
let transform = CGAffineTransformRotate(self.block.transform, rotation.rotation)
self.block.transform = transform
lol().