Changes

Jump to: navigation, search

An iOS 9 3D Touch Quick Actions Tutorial

20 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
* '''UIApplicationShortcutItemUserInfo''' – The value assigned to this key takes the form of a dictionary that can be used to pass additional data through to the app when the corresponding action is selected.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Adding a Static Quick Action to the Project ==
</array>
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Switch back to Property Editor mode by Ctrl-clicking on the Info.plist file once more, this time selecting the Open As -> Property List menu option.
application.shortcutItems = []
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
It is also possible to access the array of current dynamic quick action items and modify one or more of them before re-assigning the array. The following code, for example, gets the current array of dynamic action items and replaces the first item in the array with a different action:
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu