Inherits from CCActionInstant : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInstant.h

Overview

This actions executes a code block.

Tasks

Creating a CCActionCallBlock Object

Initializing a CCActionCallBlock Object

Class Methods

actionWithBlock:

Creates the action with the specified block, to be used as a callback. The block will be “copied”.

+ (id)actionWithBlock:(void ( ^ ) ( ))block

Parameters

block

Block to execute.

Return Value

The call block action object.

Declared In

CCActionInstant.h

Instance Methods

initWithBlock:

Initializes the action with the specified block, to be used as a callback. The block will be “copied”.

- (id)initWithBlock:(void ( ^ ) ( ))block

Parameters

block

Block to execute.

Return Value

An initialized call block action object.

Declared In

CCActionInstant.h