I have several instances of a UIControl class Foo being instantiated, one instance corresponding to each cell in a UITableView. Each foo toggles the image on the left side of the cell via a selector when the image is touched (checkmark, no checkmark). I've also assigned each instance a tag:
foo.tag = indexPath.row;
The center of the cell has the name of a person so that if the image on the row is touched, that person is "chosen". The right side of the cell has a detail disclosure button to get details on the person.
All of the above works fine.
The center portion of the cell doesn't do anything now, but I would like it to do the same as if the image on the row were touched. It turns out that it's not always obvious that the image has to be touched to chose a person.
My didSelectRowAtIndexPath is now empty. My thinking was in didSelectRowAtIndexPath to call the selector corresponding to the image on the row (the instance of the image toggle class) by its tag.
Does this make sense to do and if so how would I do it?
Thanks.