Created
March 15, 2016 05:14
-
-
Save marmelroy/f44651fdd7dd1ae81b28 to your computer and use it in GitHub Desktop.
PeekPop vs Peeking and Popping
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
// Apple's previewing API | |
viewController.registerForPreviewingWithDelegate(self, sourceView: sourceView) | |
func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? | |
func previewingContext(previewingContext: UIViewControllerPreviewing, commitViewController viewControllerToCommit: UIViewController) | |
// PeekPop's previewing API | |
peekPop = PeekPop(viewController: self) | |
peekPop?.registerForPreviewingWithDelegate(self, sourceView: collectionView!) | |
func previewingContext(previewingContext: PreviewingContext, viewControllerForLocation location: CGPoint) -> UIViewController? | |
func previewingContext(previewingContext: PreviewingContext, commitViewController viewControllerToCommit: UIViewController) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment