ORKTableStepViewController Class Reference
Inherits from | ORKStepViewController : UIViewController |
---|---|
Conforms to | UITableViewDataSource UITableViewDelegate |
Declared in | ORKTableStepViewController.h |
The ORKTableStepViewController
class is an base class that inherits from ORKStepViewController
and provides a UITableView.
ORKTableStepViewController
is designed to take advantage of the internal class methods
used by ORKFormStepViewController
, ORKQuestionStepViewController
and ORKReviewStepViewController
to allow for a consistent UI in a custom implementation of a main view that is a UITableView.
This will class will setup a consistent look for the title, text, learn more, skip and next UI elements that are used by these classes as well as most of the other view controllers within this framework by automatically adding them as the header and footer of the tableview.
The base class implementation REQUIRES using an ORKTableStep
as its data source. If you do not inherit
the step from ORKTableStep, then subclasses MUST override -cellForRowAtIndexPath
.
tableStep
The step associated with this view controller if it conforms to ORKTableStepSource.
@property (nonatomic, readonly, nullable) id<ORKTableStepSource> tableStep
Return Value
The step associated with this view controller if it conforms to ORKTableStepSource.
Declared In
ORKTableStepViewController.h
tableView
The table view managed by the controller object.
@property (nonatomic, readonly) UITableView *tableView
Return Value
The table view managed by the controller object.
Declared In
ORKTableStepViewController.h
– continueButtonEnabled
Whether or not the continue button should be enabled for this step. Default = YES
- (BOOL)continueButtonEnabled
Return Value
State of continue button
Discussion
Set to NO
if there is a validation that needs to be handled before the step
can progress. Your implementation is responsible for overriding selection as needed
to trigger validation and state changes.
Declared In
ORKTableStepViewController.h
– updateButtonStates
Update the button state for the skip and continue buttons
- (void)updateButtonStates
Declared In
ORKTableStepViewController.h