soffes / sstoolkit

A collection of well-documented iOS classes for making life easier
MIT License
3.31k stars 573 forks source link

UITableViewCell subclass that simplifies reusable cell production #179

Closed elitalon closed 10 years ago

elitalon commented 11 years ago

I've added a category with a method to know the row where a UIView object has been added. Very useful when adding buttons to UITableViewCell objects, because you could do:

- (void)cellButtonTapped:(id)sender {
  NSIndexPath *pathForButton = [self.tableView indexPathForRowContainingView:sender];
}

Credits to iOS Recipes's book as well.

soffes commented 10 years ago

Invalid post v2.0.0. Feel free to make a PR in the corresponding library.