Join Tammy Coron for an in-depth discussion in this video Creating static quick actions, part of iOS 9 3D Touch In Depth.
- View Offline
- [Voiceover] Let's take a look at…creating static quick actions.…When creating static quick actions,…you'll use the UI application shortcut items key…in the info.plist.…Within this array, there were two required keys.…The first is UIApplicationShortcutItemType.…This is the string value that's passed to your app…when a user invokes the corresponding action.…The next is UIApplicationShortcutItemTitle.…
This is also a string.…This value is used for the title of your quick action.…Be descriptive as possible with this…because this is what the user sees.…There's also UIApplicationShortcutItemSubtitle.…This key is optional.…As the name suggests,…this is the subtitle of the quick action.…You can also define an icon.…You do this by using UIApplicationShortcutItemIconType,…or UIApplicationShortcutItemIconFile.…
Finally, there's UIApplicationShortcutItemUserInfo.…This is a dictionary you can use…to store additional information about the quick action item.…Let's see how this looks in our demo.…I've loaded the 3D touch example x code project…
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