Victorianec
Victorianec

Reputation: 597

Handling tap on custom cell on UITableView don't happened

I have ViewController with TableView. For this TableView i wrote custom TableViewCell class. My cell contain only 2 labels. I need to get tap on this cells and then to do something. I tried with

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath

and some alerts inside it, but nothing happened. I can't use some methods like using invisible button on cell because i have to get some data from TableView like indexPath etc. which i won't get in my customCell class.

Upvotes: 0

Views: 91

Answers (1)

Gajendra Rawat
Gajendra Rawat

Reputation: 3663

Use didSelectRowAtIndexPath instead of using didDeselectRowAtIndexPath

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

Upvotes: 1

Related Questions