I'm working on a two-level form that I had to customize the cells for FXFormFieldTypeText.
As per the examples, I registered the class using
Class klass = NSClassFromString(@"SettingsFormTopBottomCell");
[self.formController registerCellClass:klass forFieldType:FXFormFieldTypeText];
The thing is that this customization doesn't seem to carry on when going into the second level of the form. Then, I looked into the FXForms code and found this:
The form controller always fills up its cellClassesForFieldTypes[field.type], so at no point (barring some removal of a field type) the check will return parentFormController.cellClassesForFieldTypes[field.type], am I right?
Is this kind of customization supposed to be applied to the whole form hierarchy? If not, which is the proper way of doing it?
Hello,
I'm working on a two-level form that I had to customize the cells for
FXFormFieldTypeText
. As per the examples, I registered the class usingThe thing is that this customization doesn't seem to carry on when going into the second level of the form. Then, I looked into the FXForms code and found this:
The form controller always fills up its
cellClassesForFieldTypes[field.type]
, so at no point (barring some removal of a field type) the check will returnparentFormController.cellClassesForFieldTypes[field.type]
, am I right?Is this kind of customization supposed to be applied to the whole form hierarchy? If not, which is the proper way of doing it?
Thanks!