liebus

UIView 터치이벤트 본문

예전꺼(2014년이전꺼)/iOS

UIView 터치이벤트

리베스 2011. 3. 28. 22:07
UIView에 터치이벤트 
 

UIView는 UIResponder의 sub class이다 따라서 Responder의 터치관련 이벤트처리 메소드를
Overring 해서 처리 한다. 

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { }

-(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { }


-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { }


-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { }

Comments