我在我的iOS應用程序上有一個單獨的視圖,裏面有一個mapView。 添加輕擊或長按識別器時,會正確調用事件。 但不可用掐事件......UIPinchGestureRecognizer不叫
UIPinchGestureRecognizer *handlePinchGesture=[[UIPinchGestureRecognizer alloc]initWithTarget:mapView action:@selector(handleGesture:)];
[mapView addGestureRecognizer:handlePinchGesture];
任何想法,我要補充的嗎? 謝謝。
顯示'handlGesture:'方法 – CodaFi
添加NSLog()進行調試。 – c0d3Junk13
handleGesture函數沒有被調用(我已經在第1行設置了一個斷點,並且沒有到達)。 –