Launching with UIApplicationShortcutItem

后端 未结 6 715
南旧
南旧 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条回答
  •  不要未来只要你来
    2021-01-31 18:12

    1. In Xcode, open Product -> Schemes -> Edit Schemes
    2. In your Run Scheme, change the Launch setting to 'Wait for executable to be launched'

    Now, if you turn on debugging and run your app, Xcode will wait for you to launch your app from the home screen so you are able to test launching it using a 3D Touch Shortcut Item.

提交回复
热议问题