In cellForRowAtIndexPath
add the tag
property to the subzone of the cell in question. Also set the subview hidden
property to YES
. Finally, set the selectionStyle
cell to UITableViewCellSelectionStyleNone
.
if (thisIsTheIndexPathInQuestion) { CGRect theFrame = CGRectMake(...);
Then simply respond to what you described in the corresponding delegate method of the UITableView:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (thisIsTheIndexPathInQuestion) {
Make sure your custom cell has a different CellIdentifier
and this will work.
Mundi source share