The first thing is to have a real iphone 6s or more, develop the tool Xcode 7, and then copy a piece of text in the official document.
<key>UIApplicationShortcutItems</key> |
<array> |
<dict> |
<key>UIApplicationShortcutItemIconFile</key> |
<string>open-favorites</string> |
<key>UIApplicationShortcutItemTitle</key> |
<string>Favorites</string> |
<key>UIApplicationShortcutItemType</key> |
<string>com.mycompany.myapp.openfavorites</string> |
<key>UIApplicationShortcutItemUserInfo</key> |
<dict> |
<key>key1</key> |
<string>value1</string> |
</dict> |
</dict> |
<dict> |
<key>UIApplicationShortcutItemIconType</key> |
<string>UIApplicationShortcutIconTypeCompose</string> |
<key>UIApplicationShortcutItemTitle</key> |
<string>new message</string> |
<key>UIApplicationShortcutItemType</key> |
<string>com.mycompany.myapp.newmessage</string> |
<key>UIApplicationShortcutItemUserInfo</key> |
<dict> |
<key>key2</key> |
<string>value2</string> |
</dict> |
</dict> |
</array> |
3D Touch feature Development for IOS 9