![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCProtocols.h>
Public Member Functions | |
(void) | - setString: |
(NSString *) | - string |
(void) | - setCString: |
Common interface for Labels
- (void) setCString: | (char *) | label | [optional] |
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) setString: | (NSString *) | label |
sets a new label using an NSString. The string will be copied.
Reimplemented in CCLabelTTF.
- (NSString*) string |
returns the string that is rendered