두 개의 레이블에 각각 두 개의 별도 태그가 있습니다.커스텀 UITableviewcell에서 눌려진 UILabel을 탐지하는 방법은 무엇입니까?
태그를 확인하여 어떤 레이블이 눌려 졌는지 감지하고 싶습니다.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {}
내부
나는 다음과 같은 코드에 의해 그 중 하나를 검색 할 수 있습니다
cell = [walltable cellForRowAtIndexPath:indexPath];
topLabel= (UILabel *)[cell.contentView.subviews objectAtIndex:0];
하지만 난 눌렀 던 일을 모른다.
사용자가 어떤 레이블을 눌렀는지 확인하는 방법이 있습니까?