CEWendel / SWTableViewCell

An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)
MIT License
7.13k stars 1.27k forks source link

touch, not swipe #310

Open florjon opened 9 years ago

florjon commented 9 years ago

hello,

have any one tried to see the buttons , not by swiping, but just by touching the table view cell ?

thnx in advance.

michal-czw commented 9 years ago

Try this:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    SWTableViewCell *cell = (SWTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
    [cell showRightUtilityButtonsAnimated:YES];
}