TKDataFormCustomEditorDelegate Protocol Reference
Conforms to | NSObject |
Declared in | TKDataFormCustomEditor.h |
Overview
The methods declared by the TKDataFormCustomEditorDelegate protocol allow the the usage of a custom views as editors in TKDataForm.
Tasks
-
– editorWillCreateView:
required method -
– editor:shouldApplyValue:editorView:
required method -
– editorWillReturnValue:editorView:
required method
Instance Methods
editor:shouldApplyValue:editorView:
Called when a property value should to be applied to the editor view.
- (void)editor:(TKDataFormCustomEditor *__nonnull)editor shouldApplyValue:(NSObject *__nullable)value editorView:(UIView *__nullable)view
Parameters
- editor
The custom editor that should apply value.
- value
The value that should be applied.
- view
The editor view that has to be updated with the value.
Declared In
TKDataFormCustomEditor.h
editorWillCreateView:
Called when the editor view has to be created.
- (UIView *__nullable)editorWillCreateView:(TKDataFormCustomEditor *__nonnull)editor
Parameters
- editor
The custom editor requesting a view.
Return Value
The editor view for the custom editor.
Declared In
TKDataFormCustomEditor.h
editorWillReturnValue:editorView:
Called when the editor should return its value.
- (NSObject *__nullable)editorWillReturnValue:(TKDataFormCustomEditor *__nonnull)editor editorView:(UIView *__nullable)view
Parameters
- editor
The custom editor that requests the value.
- view
The editor view that currently displays the value.
Return Value
The current value of the editor.
Declared In
TKDataFormCustomEditor.h