Type Method

contextualActionWithStyle:title:handler:

Creates a new contextual action with the specified title and handler.

Declaration

+ (instancetype)contextualActionWithStyle:(UIContextualActionStyle)style title:(NSString *)title handler:(UIContextualActionHandler)handler;

Parameters

style

The style information to apply to the action button.

title

The title of the action button.

handler

The handler to execute when the user selects the action.

Return Value

An initialized contextual action object.