CCControlPickerRow Class Reference
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
-
– initWithTitle:
Initializes a simple row node with the content title.
-
+ rowWithTitle:
Creates a simple row node with the content title.
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
-
– fitRowInSize:
Called when the size must resize.
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