創建你的imageView,名字叫 tapPage3
手勢代碼:
? ? ?UITapGestureRecognizer *tapGesturRecognizer=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapPage3)];
? ? [page3? addGestureRecognizer:tapGesturRecognizer];
如果還是沒反應, 設置
? ? tapPage3userInteractionEnabled = YES;