내 UIViewController에는 다른 UIView가 있고 그 중 일부는 내 사용자 정의 UIViews입니다. 어느 UIView가 만져 졌는지, 내 사용자 정의 여부를 아는 방법 ??iPhone : 어떤 객체를 만졌는지 확인하는 방법
UITapGestureRecognizer * recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
[view addGestureRecognizer:recognizer];
UITapGestureRecognizer * recognizerCustom = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapCustom:)];
[customView addGestureRecognizer:recognizer];
당신이 handleTap
때 알고이 방법 :
: http://stackoverflow.com/questions/2793242/detect-if-certain-uiview-was 기타 - uiviews 사이에 - – Oritm
예, 감사합니다 .... – Jim
시도 isKindOfClass 메서드 – HarshIT