Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion XLForm/XL/Descriptors/XLFormRowDescriptor.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ +(instancetype)formRowDescriptorWithTag:(NSString *)tag rowType:(NSString *)rowT
return [[[self class] alloc] initWithTag:tag rowType:rowType title:title];
}

-(XLFormBaseCell *)cellForFormController:(XLFormViewController * __unused)formController
-(XLFormBaseCell *)cellForFormController:(XLFormViewController *)formController
{
if (!_cell){
id cellClass = self.cellClass ?: [XLFormViewController cellClassesForRowDescriptorTypes][self.rowType];
Expand All @@ -143,6 +143,7 @@ -(XLFormBaseCell *)cellForFormController:(XLFormViewController * __unused)formCo
}
} else {
_cell = [[cellClass alloc] initWithStyle:self.cellStyle reuseIdentifier:nil];
_cell.tintColor = formController.view.tintColor;
}
_cell.rowDescriptor = self;
NSAssert([_cell isKindOfClass:[XLFormBaseCell class]], @"UITableViewCell must extend from XLFormBaseCell");
Expand Down