# CCActionCallFunc Class Reference

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

## Overview

This action allows a custom function to be called.

## Tasks

### Other Methods

- `targetCallback` property

### Creating a CCActionCallFunc Object

- `+ actionWithTarget:selector:`

### Initializing a CCActionCallFunc Object

- `– initWithTarget:selector:`

## Properties

### targetCallback

Target function that will be called.

`@property (nonatomic, readwrite, weak) id targetCallback`

#### Declared In

`CCActionInstant.h`

## Class Methods

### actionWithTarget:selector:

Creates the action with the callback.

`+ (id)actionWithTarget:(id)t selector:(SEL)s`

#### Parameters

t

  Target the selector is sent to.

s

  Selector to execute.

#### Return Value

The call func action object.

#### Declared In

`CCActionInstant.h`

## Instance Methods

### initWithTarget:selector:

Initializes the action with the callback.

`- (id)initWithTarget:(id)t selector:(SEL)s`

#### Parameters

t

  Target the selector is sent to

s

  Selector to execute

#### Return Value

An initialized call func action object.

#### Declared In

`CCActionInstant.h`