在imageView依次加入7個手勢, 1.點擊哪個button,往imageView上加入哪個手勢.(保證視圖上僅僅有一個手勢). 2.輕拍:點擊視圖切換美女圖片.(imageView上首先展示的美女
// // ControlView.h // HomeworkGestureRecognizer // // Created by lanouhn on 14-8-27. // Copyright (c) 2014年 [email protected] 陳聰雷. All rights reserved. // #import <UIKit/UIKit.h> @interface ControlView : UIView @property (nonatomic, retain) NSMutableArray *gestureBtnArr;//存儲控制手勢切換的按鈕 @property (nonatomic, retain) NSMutableArray *animationImages; @property (nonatomic, retain) NSMutableArray *animationImages1; @property (nonatomic, retain) UIImageView *imageView; @property (nonatomic, retain) UIButton *startBtn;//開始播放動畫按鈕 @property (nonatomic, retain) UIButton *stopBtn;//停止播放動畫按鈕 @end // // ControlView.m // HomeworkGestureRecognizer // // Created by lanouhn on 14-8-27. // Copyright (c) 2014年 [email protected]