As this is a fairly large topic - it has been broken down into 2 separate posts. The first one (this post) addresses the UI declaration. The second post will address the code behind the UI-items.
Changes to info.plist (the project file)
- Select the info.plist file in the project navigation window.
- Right click on the blank area and select Add Row
- You cannot select a properly named item - so name the new entry (just write the name): UIApplicationShortcutItems
- Set the datatype = Array
- This array will hold a number of Dictionary objects that each define a ShortCutItem (the force touch items presented when pressing the application icon)
To add the dictionary items to the array - you can do so using the Xcode editor or using a conventional text editor (he plist file is just an xml-file). Finally - as you can see from the below images the entries in the plist file will give you the UI.
All 3 elements in each dictionary should be there - the one connecting the dots between UI and code is the UIApplicationShortcutItemType value. This must be unique. Conventionally, this is achieved by combining the bundleID with a string (in the below example ".First" or ".Second").
info.plist open in Xcode: