您的位置:首页 > 移动开发 > IOS开发

iOS 9之3D Touch功能

2016-05-13 09:40 429 查看
首先要有真机iPhone 6s以上,开发工具Xcode 7,然后在官方文档拷贝一段文字就可以了。













<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>


借鉴:http://my.oschina.net/u/1992564/blog/522862
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: