Inherits from CCNode
Conforms to CCControlPickerRowDelegate
Declared in CCControlPicker.h

Overview

The CCControlPickerRow class implements the row node representation for the CCControlPicker.

A row node implements some methods and callbacks to make the CCControlPicker customization more easier.

Tasks

Create Picker' Rows

Managing Text as Row Content

  •   textLabel

    Returns the label used for the main textual content of the control picker row. (read-only)

    property

Managing Row Size

Properties

textLabel

Returns the label used for the main textual content of the control picker row. (read-only)

@property (nonatomic, readonly) CCLabelTTF *textLabel

Discussion

Holds the main label of the row. CCControlPickerRow adds an appropriate label when you create the row.

Declared In

CCControlPicker.h

Class Methods

rowWithTitle:

Creates a simple row node with the content title.

+ (id)rowWithTitle:(NSString *)title

Discussion

Creates a simple row node with the content title.

Declared In

CCControlPicker.h

Instance Methods

fitRowInSize:

Called when the size must resize.

- (void)fitRowInSize:(CGSize)size

Parameters

size

The size that the row should fit.

Discussion

The method is called by the CCControlPicker when its needed. The control picker uses the size defined by the rowSizeForControlPicker: method of the CCControlPickerDelegate.

You have to override this method to layout your cell correctly.
(do not forget to call the super [super fitRowInSize:size])

Declared In

CCControlPicker.h

initWithTitle:

Initializes a simple row node with the content title.

- (id)initWithTitle:(NSString *)title

Discussion

Initializes a simple row node with the content title.

Declared In

CCControlPicker.h