Reputation: 919
I made a quite a bit customized UITableView
which has 3 rows, each row is custom made using UITableViewCell
. I added several UIView
s within UITableViewCell
along with UITapGestureRecognizer
s.
Due to many small views in UITableViewCell
, I implemented codes for touch events on "m" file of that UITableViewCell
.
Somehow the recognizer are not working. I am not sure I am providing enough info here..
UPDATE: I realized my explanation isn't quite enough.. so a little more detail.
This is how my UITableView
look like,
UITableView
has UITableViewCell
(A).
UItableViewCell
(A)'s contentView is made by combination of 6 other UITableViewCells
(B).
Each UITableViewCells
(B) has a few UIViews
which have those TapGesture recognizers.
I know it seems over complicated, but I used UITableViewCell(B) not for reuse purpose but for repeated Nib files. Anyway the final UIView doesn't take any touch events.
Upvotes: 0
Views: 657
Reputation: 3288
UITableView
has its own tap gesture for selecting the row. You can do it by implementing your code inside following functions. Can you tell me what are you using to implement for selecting the row
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
}
Upvotes: 1