Conforms to NSObject
Declared in CCProtocols.h

Overview

Common interface for Labels

Tasks

  • – setString:

    sets a new label using an NSString. The string will be copied.

    required method
  • – string

    returns the string that is rendered

    required method
  • – setCString:

    sets a new label using a CString. It is faster than setString since it doesn’t require to alloc/retain/release an NString object.

Instance Methods

setCString:

sets a new label using a CString. It is faster than setString since it doesn’t require to alloc/retain/release an NString object.

- (void)setCString:(char *)label

Availability

Declared In

CCProtocols.h

setString:

sets a new label using an NSString. The string will be copied.

- (void)setString:(NSString *)label

Declared In

CCProtocols.h

string

returns the string that is rendered

- (NSString *)string

Declared In

CCProtocols.h