- (void)rightItemClick{
[UIView animateWithDuration:0.1 animations:^{
self.rightItem.transform = CGAffineTransformRotate(self.rightItem.transform, M_1_PI * 5);
} completion:^(BOOL finished) {
}];
}
这样右侧按钮就会旋转。间隔时间为0.1秒
- (void)rightItemClick{
[UIView animateWithDuration:0.1 animations:^{
self.rightItem.transform = CGAffineTransformRotate(self.rightItem.transform, M_1_PI * 5);
} completion:^(BOOL finished) {
}];
}