Conforms to UIActionSheetDelegate
Declared in UIActionSheet+Blocks.h
UIActionSheet+Blocks.m

Overview

Introduces block callbacks to UIActionSheet.

Class Methods

sheetWithTitle:

Creates a UIAction sheet object.

+ (UIActionSheet *)sheetWithTitle:(NSString *)title

Parameters

title

The title for the sheet.

Return Value

A UIActionSheet with only the title set.

Declared In

UIActionSheet+Blocks.h

Instance Methods

addButtonWithTitle:handler:

Add a button with a callback block.

- (void)addButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block

Parameters

title

The title for the sheet.

block

The callback sent when a user selects the option.

Declared In

UIActionSheet+Blocks.h

addCancelButtonWithTitle:handler:

Add a cancel button with a callback block.

- (void)addCancelButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block

Parameters

title

The title for the sheet.

block

The callback sent when a user selects the option.

Declared In

UIActionSheet+Blocks.h

addDestructiveButtonWithTitle:handler:

Add a destructive button with a callback block.

- (void)addDestructiveButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block

Parameters

title

The title for the sheet.

block

The callback sent when a user selects the option.

Declared In

UIActionSheet+Blocks.h

initWithTitle:

Intialized a UIActionSheet.

- (instancetype)initWithTitle:(NSString *)title

Parameters

title

The title for the sheet.

Return Value

A UIActionSheet with only the title set.

Declared In

UIActionSheet+Blocks.h