UIKitフレームワークのリファレンスを見ていたら、UIApplicationShortcutItem. 3Dタッチ用です。
次のコード サンプルが含まれています。
let existingShortcutItems = UIApplication.sharedApplication().shortcutItems ?? []
let anExistingShortcutItem = existingShortcutItems[anIndex]
var updatedShortcutItems = existingShortcutItems
let aMutableShortcutItem = anExistingShortcutItem.mutableCopy() as! UIMutableApplicationShortcutItem
aMutableShortcutItem.localizedTitle = “New Title"
updatedShortcutItems[anIndex] = aMutableShortcutItem
UIApplication.sharedApplication().shortcutItems = updatedShortcutItemsode here
私が正しければ、これをアプリデリゲートに入れますか?
そして、これはどのように機能しますか?localizedTitle選択されたアクションのタイトルを確認し、そのタイトルを持つアクションを呼び出すために呼び出されるメソッドですか? アクションはどこで行われますか?