UIPreviewActionGroup
A preview quick action group contains one or more child quick actions, each an instance of the UIPreviewAction class.
When first displayed, the group appears as a single option in a peek quick action sheet. If the user selects the group, a submenu opens, displaying the child quick actions.
-
Creates a peek quick action group using a specified title, style, and array of peek quick actions.
Declaration
Swift
convenience init(titletitle: String, stylestyle: UIPreviewActionStyle, actionsactions: [UIPreviewAction])Objective-C
+ (instancetype)actionGroupWithTitle:(NSString *)titlestyle:(UIPreviewActionStyle)styleactions:(NSArray<UIPreviewAction *> *)actionsParameters
titleThe peek quick action group’s title
styleThe style for the peek quick action group.
When the system presents the group’s submenu, each child quick action is displayed using its own style. The available styles are described in the UIPreviewActionStyle enumeration in UIPreviewActionItem Protocol Reference.
actionsAn array of
UIPreviewActionobjects, displayed as the child quick actions for the peek quick action group.Return Value
A newly initialized peek quick action group with your specified title, style, and submenu of peek quick actions.
Availability
Available in iOS 9.0 and later.
Copyright © 2016 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2015-09-16
