I customized the tableView cell which I set a label of time & What I need if I touch/click the label it show the text of that label.
Here is the time label set:
cell.time.text = @"5 mins ago";
cell.time.tag = 1;
UITapGestureRecognizer* tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
[cell.time setUserInteractionEnabled:YES];
[cell.time addGestureRecognizer:tap];
So when I tapped the label must do the below
-(void)tapAction:(id)sender
{
// I want to get the text of that label for above example must return
// 5 mins ago
}
Thanks in advance..