Launching with UIApplicationShortcutItem

后端 未结 6 714
南旧
南旧 2021-01-31 17:38

I\'m implementing some 3D touch quick actions for my iOS 9 app in swift, and I have a curious issue. When my app is in the background and I launch with the quick action, everyth

6条回答
  •  萌比男神i
    2021-01-31 18:11

    I tried all the above, and it didn't solve the problem than I tried handling the shortcut after delay in handleShortcut method:

    self.performSelector("action1", withObject: self, afterDelay: 0.5)
    

    and added a method for every action, and it worked like a charm

提交回复
热议问题