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

Overview

Executes a callback using a block.

Tasks

  • + actionWithBlock:

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

  • – initWithBlock:

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

  • – execute

    executes the callback

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

Declared In

CCActionInstant.h

Instance Methods

execute

executes the callback

- (void)execute

Declared In

CCActionInstant.h

initWithBlock:

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

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

Declared In

CCActionInstant.h