NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
A segmented control form element.
This element presents a segmented control. You can initialize it with a label for the cell, an array of NSString or UIImage objects acting as segments for the segmented control and a selectedIndex. The selectedIndex can be -1 if you don't want to preselect a segment.
A delegate method (didChangeSelector) will be called on the didChangeTarget once a different segment is selected. The segmented control will be passed as an argument to this method.
Tasks | |
(id) | + segmentedControlElementWithID:labelText:segments:selectedIndex:didChangeTarget:didChangeSelector: |
(id) | + segmentedControlElementWithID:labelText:segments:selectedIndex: |
(Class) | - cellClass |
(UITableViewCellStyle) | - cellStyle |
Initializes a segmented control form cell with callback method for value change events.
elementID | An ID for this element. |
labelText | Text to show on the left side of the form cell. |
segments | An array containing NSString or UIImage objects that will be used as segments of the control. The order in the array is used as order of the segments. |
selectedIndex | Index of the selected segment. -1 if no segment is selected. |
target | Receiver for didChangeSelector calls. |
selector | Method that is called when a segment is selected. |
Initializes a segmented control form cell.
elementID | An ID for this element. |
labelText | Text to show on the left side of the form cell. |
segments | An array containing NSString or UIImage objects that will be used as segments of the control. The order in the array is used as order of the segments. |
selectedIndex | Index of the selected segment. -1 if no segment is selected. |
The class of cell to be created when this object is passed to the cell factory.
The style of UITableViewCell to be used when initializing the cell for the first time.