Closed elitalon closed 10 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:
UIView
UITableViewCell
- (void)cellButtonTapped:(id)sender { NSIndexPath *pathForButton = [self.tableView indexPathForRowContainingView:sender]; }
Credits to iOS Recipes's book as well.
Invalid post v2.0.0. Feel free to make a PR in the corresponding library.
I've added a category with a method to know the row where a
UIView
object has been added. Very useful when adding buttons toUITableViewCell
objects, because you could do:Credits to iOS Recipes's book as well.