3D Touch Home Shortcuts In Obj-C

前端 未结 5 816
一整个雨季
一整个雨季 2021-01-30 05:37

All of my apps are currently written in Obj-C. The link https://developer.apple.com/library/content/samplecode/ApplicationShortcuts/Introduction/Intro.html#//apple_ref/doc/uid/

5条回答
  •  长发绾君心
    2021-01-30 06:06

    I make an objective-c demo project for home screen quick action.

    3D touch home quick action demo : https://github.com/dakeshi/3D_Touch_HomeQuickAction

    The Demo project implements the static quick action without Info.plist file to avoid unwanted situations before launching the app at first. You can easily change it to the dynamic quick action.

    As mentioned in apple documentation, you can handle quick action in application:didFinishLaunchingWithOptions: method. In that case, you should return NO to block to call application:performActionForShortcutItem:completionHandler: method.

提交回复
热议问题