UIRotationGestureRecognizer
旋转手势,使用和前面的非常类似, 我们学习如何使用它
1. UIRotationGestureRecognizer的创建
下面我们来使用它实现一个图片随手势旋转
import UIKit
class ViewController: UIViewController {
var imageView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
self.imageView = UIImageView(image: UIImage(named: "thumbHighlighted"))
self.imag