Last active
October 27, 2015 02:54
-
-
Save y8k/dd108513388f3188211c to your computer and use it in GitHub Desktop.
Register for 3D touch previewing.
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
class PresentedViewController: UITableViewController, UIViewControllerPreviewingDelegate { | |
... | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
registerForPreviewingWithDelegate(self, sourceView: view) | |
} | |
... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment