Skip to content

Instantly share code, notes, and snippets.

@kubbing
Created December 2, 2015 15:56
Show Gist options
  • Save kubbing/81d183f9d07845766859 to your computer and use it in GitHub Desktop.
Save kubbing/81d183f9d07845766859 to your computer and use it in GitHub Desktop.
- (void)previewingContext:(id<UIViewControllerPreviewing>)previewingContext
commitViewController:(UIViewController *)viewControllerToCommit
{
// get the peek controller (on screen currently)
HNTMemberPeekViewController *peekController = (HNTMemberPeekViewController *)viewControllerToCommit;
// get its data object
HNMemberLite *memberLite = peekController.memberLite;
// handle it as you'd handle normal cell tap action
[self memberAction:memberLite];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment