Instance Method

initWithAction:

Initializes a new transaction with the specified action.

Declaration

- (instancetype)initWithAction:(CXAction *)action;

Parameters

action

The action to add to the transaction.

Return Value

A new transaction with the specified action.

Discussion

This initializer is a convenience for using the designated initializer and calling the addAction: method passing action.

See Also

Creating New Transactions

- initWithActions:

Initializes a new transaction with the specified actions.