Join Tammy Coron for an in-depth discussion in this video 3D Touch methods in UIViewController, part of iOS 9 3D Touch Quick Start.
- [Voiceover] Adding peak and pop to your app…is relatively straightforward.…Using the methods available in UIViewController,…you're able to add peak and pop functionality to your app.…The method you use are register for previewing…with delegate source view and unregister for previewing…with context.…You'll also use preview action items.…Register for previewing with delegate source view…is how you register a view controller…for peak and pop.…
Unregister for previewing with context typically…gets called automatically.…But if you need to unregister a view controller…immediately you can use this method.…The preview action items returns the array…of peak quick actions.…This array is empty by default.…
In this course, Tammy Coron walks through the 3D Touch API. She shows how to add static and dynamic quick actions, which allow you to display shortcuts for app-specific tasks. She also covers peek—for displaying live previews of items—and pop, which opens a detailed version of the peek view. Last but not least, she shows how to implement custom actions using UITouch's new properties: force and maximumPossibleForce.
- Accessibility and 3D Touch
- Checking for 3D Touch availability
- Understanding static vs. dynamic actions
- Working with peek and pop views
- Working with UITouch objects