Learn-iOS-Swift-by-Examples/ApplicationShortcuts
Liu Lantao 46acaebced
ApplicationShortcuts: Version 1.3, 2017-12-14
Upgraded to Swift 4, iOS 11 SDK.

Signed-off-by: Liu Lantao <liulantao@gmail.com>
2017-12-20 13:09:45 +08:00
..
ApplicationShortcuts ApplicationShortcuts: Version 1.3, 2017-12-14 2017-12-20 13:09:45 +08:00
ApplicationShortcuts.xcodeproj ApplicationShortcuts: Version 1.3, 2017-12-14 2017-12-20 13:09:45 +08:00
.gitignore ApplicationShortcuts: Version 1.3, 2017-12-14 2017-12-20 13:09:45 +08:00
LICENSE.txt ApplicationShortcuts: Version 1.3, 2017-12-14 2017-12-20 13:09:45 +08:00
README.md ApplicationShortcuts: Version 1.3, 2017-12-14 2017-12-20 13:09:45 +08:00

README.md

Application Shortcuts: Using UIApplicationShortcutItem

Summary

Demonstrates how to use the UIApplicationShortcutItem class in your application so users can quickly access parts of an application through “Quick actions” from the Home screen. It implements four different shortcuts, two static defined (UIApplicationShortcutItem) in your Info.pist, two dynamic or mutable (UIMutableApplicationShortcutItem) defined through code. The mutable shortcuts can be edited to change their title, subtitle and icon.

IMPORTANT: This sample should be run on an iPhone 6s or 6s Plus device or later. The iOS simulator will allow use of the shortcuts through its Hardware -> Touch Pressure menu, which requires a Trackpad.

Requirements

Build

iOS 11.0 SDK, Xcode 9.0

Runtime

iOS 10.0 or later

Copyright (C) 2015-2017 Apple Inc. All rights reserved.