Skip to content

Instantly share code, notes, and snippets.

@simonnickel
Created June 6, 2014 12:29
Show Gist options
  • Save simonnickel/1de5d810ddc6d44cb2a8 to your computer and use it in GitHub Desktop.
Save simonnickel/1de5d810ddc6d44cb2a8 to your computer and use it in GitHub Desktop.
#pragma mark - SNLInteractionCell delegate
- (void)swipeAction:(SNLSwipeSide)swipeSide onCell:(SNLExampleTableViewCell *)cell {
// implement actions on successfull swipe gesture
if (swipeSide == SNLSwipeSideLeft) {
NSLog(@"Left on '%@'", cell.label.text);
}
else if (swipeSide == SNLSwipeSideRight) {
NSLog(@"Right on '%@'", cell.label.text);
[self performSegueWithIdentifier:@"detail" sender:self];
}
}
- (void)buttonActionWithTag:(NSInteger)tag onCell:(SNLExampleTableViewCell *)cell {
if (tag == 1) {
NSLog(@"First Button on '%@'", cell.label.text);
}
else if (tag == 2) {
NSLog(@"Second Button on '%@'", cell.label.text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment