Tuesday, December 3, 2013

Click UITableView problem child of interpretation

I customized the cell row cell, row shows three pictures, I want to know how to determine what is to click on the pictures, in the method - (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath {} how to judge click on that picture? ? ? ? ?
Reply:
You can add a tag to each imageview, rewritten touchbegin method imageView then determine tag on the inside to know what the picture is clicked on the
Reply:
[IndexPath row] can be obtained by clicking the corresponding row. Where do you put a line which picture, not just know.
Reply:
didSelectRowAtIndexPath only accurate to the line, not exactly to the line in the picture. The second floor is a way to say, but to do it for you estimate a bit difficult. You can carry the picture controls replaced uibutton, then add the click event to each button, point of difference is based on tag which button. You just want to temporarily pictures, you use button and imageview to show the difference between the picture is not out of the eyes.
Reply:
First obtain TableViewCell. Then you have to get a picture from inside cell

No comments:

Post a Comment