????6.????????RotationGestureRecognizer??
????????????????
????1     //??????????
????2     UIRotationGestureRecognizer *rotationGesture = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotationGesture:)];
????3     [self.view addGestureRecognizer:rotationGesture];
????????????????????
1 //???????
2 -(void)rotationGesture:(id)sender
3 {
4
5     UIRotationGestureRecognizer *gesture = sender;
6
7     if (gesture.state==UIGestureRecognizerStateChanged)
8     {
9         _imageView.transform=CGAffineTransformMakeRotation(gesture.rotation);
10     }
11
12     if(gesture.state==UIGestureRecognizerStateEnded)
13     {
14
15         [UIView animateWithDuration:1 animations:^{
16             _imageView.transform=CGAffineTransformIdentity;//????α?
17         }];
18     }
19
20 }
??????????????ж?????????????iOS?????е????????????СС??????1???????????