How can I change the UIButtons I have in UITableViewCells
1 answer
Well, actually, you can just call cellForRowAtIndexPath:
to traverse the path of the pointer you get and get the cell, then get the button inside the cell and voila!
- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [ tableView cellForRowAtIndexPath: indexPath ];
UIButton *button = [ cell.contentView.subviews objectAtIndex: ... ];
...
}
+1
a source to share