Conforms to *
:
T
UIView
Declared in RMAction.h

Overview

A RMAction instance represents an action that can be tapped by the use when a RMActionController is presented. It has a title or image for identifying the action and a handler which is calledwhen the action has been tapped by the user.

If both title and image are given, the title is displayed.

Tasks

Properties

controller

@property (nullable, nonatomic, weak, readonly) RMActionController *controller
Discussion

The controller your action is added to.

Declared In

RMAction.h

dismissesActionController

@property (nonatomic, assign) BOOL dismissesActionController
Discussion

Control whether or not the RMActionController to whom the RMAction has been added is dismissed when the RMAction has been tapped.

Declared In

RMAction.h

image

@property (nullable, nonatomic, readonly) UIImage *image
Discussion

The image of the action.

Declared In

RMAction.h

style

@property (nonatomic, readonly) RMActionStyle style
Discussion

The style of the action.

Declared In

RMAction.h

title

@property (nullable, nonatomic, readonly) NSString *title
Discussion

The title of the action.

Declared In

RMAction.h

view

@property (nonnull, nonatomic, readonly) UIView *view
Discussion

Gives you access to the actual view of the RMAction.

Declared In

RMAction.h

Class Methods

actionWithImage:style:andHandler:

+ (nullable instancetype)actionWithImage:(nonnull UIImage *)image style:(RMActionStyle)style andHandler:(nullable void ( ^ ) ( RMActionController<T> *__nonnull controller ))handler
Discussion

Returns a new instance of RMAction with the given properties set.

Parameters

image

The image of the action.

style

The style of the action.

handler

A block that is called when the action has been tapped.

Return Value

The new instance of RMAction.

Declared In

RMAction.h

actionWithTitle:image:style:andHandler:

+ (nullable instancetype)actionWithTitle:(nonnull NSString *)title image:(nonnull UIImage *)image style:(RMActionStyle)style andHandler:(nullable void ( ^ ) ( RMActionController<UIView*> *__nonnull controller ))handler
Discussion

Returns a new instance of RMAction with the given properties set.

Parameters

title

The title of the action.

image

The image of the action.

style

The style of the action.

handler

A block that is called when the action has been tapped.

Return Value

The new instance of RMAction.

Declared In

RMAction.h

actionWithTitle:style:andHandler:

+ (nullable instancetype)actionWithTitle:(nonnull NSString *)title style:(RMActionStyle)style andHandler:(nullable void ( ^ ) ( RMActionController<T> *__nonnull controller ))handler
Discussion

Returns a new instance of RMAction with the given properties set.

Parameters

title

The title of the action.

style

The style of the action.

handler

A block that is called when the action has been tapped.

Return Value

The new instance of RMAction.

Declared In

RMAction.h

Instance Methods

actionTapped:

- (void)actionTapped:(nullable id)sender
Discussion

Call this method when you want to indicate, that this action has been tapped by the user. For example, this method can be used as the selector for an UIButton.

Declared In

RMAction.h

loadView

- (nonnull UIView *)loadView
Discussion

Called when the RMAction is expected to load it’s view. In subclasses return your custom content view here. Do not call manually.

Declared In

RMAction.h