0
設置觸摸事件如何在其他視圖如何只在指定的View
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
currentPoint = [touch locationInView:drawImage];
}
只在指定view.Not得到的觸摸事件在這段代碼觸摸是anyObject。
是否有任何爲什麼我可以給觸摸只指定視圖。
你能解釋一下更具體一點你想要做什麼? – 2012-03-21 15:58:13
@KyleRosenbluth我的控制器裏有3個UIView。我只想在第一個uiview上觸摸事件,如果我觸摸另一個uiview,touchBegin,touchEnded和touchMoved正在調用。當我接觸另一種觀點時,我不想打電話給他們。 – kiran 2012-03-22 21:10:39