AWFTableSectionRow
Objective-C
@interface AWFTableSectionRow
Swift
class AWFTableSectionRow
An AWFTableSectionRow
object manages a single row option that is displayed within a UITableView
.
-
The title to display for the row.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull title;
Swift
var title: String { get set }
-
The value to associate with the row, if any. This should be defined if this cell requires a selected/deselected state.
Declaration
Objective-C
@property (nonatomic, strong, nullable) id value;
Swift
var value: Any? { get set }
-
The cell identifier used when dequeuing a
UITableViewCell
instance from the parent table view.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *cellIdentifier;
Swift
var cellIdentifier: String? { get set }
-
Creates and returns an
AWFTableSectionRow
instance initialized with the specified title and value. *Declaration
Objective-C
+ (nonnull instancetype)rowWithTitle:(nonnull NSString *)title value:(nullable id)value;
Swift
convenience init(title: String, value: Any?)
Parameters
title
The title to display for the row
value
The value for the row (optional) *
Return Value
An initialized section row for the title and value
-
Creates and returns an
AWFTableSectionRow
instance initialized with the specified title, value and cellIdentifier. *Declaration
Objective-C
+ (nonnull instancetype)rowWithTitle:(nonnull NSString *)title value:(nullable id)value cellIdentifier:(nullable NSString *)cellIdentifier;
Swift
convenience init(title: String, value: Any?, cellIdentifier: String?)
Parameters
title
The title to display for the row
value
The value for the row (optional)
cellIdentifier
The cell identifier for the
UITableViewCell
class to use when configuring the table view cell for this row *Return Value
An initialized section row for the title, value and cell identifier