Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Context menu after press on app icon

Does custom apps support this feature today? Instagram support this feature for example.

Can you help me to add context menu to my app. What shold I do to add context menu? And How can I handle it? I tried to find this information in google/stackoverflow/documentation. But without some results. Only force touch on iWatch.

May be some link to documentation or article about this. May be it is not first question about this.

P.S. Thank for attention and any help. Thak

enter image description here

like image 881
Nuzhdin Vladimir Avatar asked Oct 23 '25 21:10

Nuzhdin Vladimir


1 Answers

From documentation:

iOS 9 supports Home screen static and dynamic quick actions.

  • Static quick actions are available to the user immediately upon app installation. Define Home screen static quick actions in your app’s Info.plist file in the UIApplicationShortcutItems array.

  • Dynamic quick actions are available to the user after first launch. Define Home screen dynamic quick actions with the UIApplicationShortcutItem, UIMutableApplicationShortcutItem, and UIApplicationShortcutIcon classes. Add dynamic quick actions to your app’s shared UIApplication object using the shortcutItems property.

Also available sample application source code.

like image 145
ifau Avatar answered Oct 25 '25 10:10

ifau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!