Created
June 6, 2014 12:29
-
-
Save simonnickel/1de5d810ddc6d44cb2a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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