Closed Andy0570 closed 6 years ago
Well, you can see the cause of the crash in your output.
When you clear the input the value of the row gets set to NSNull
but formRowDescriptorValueHasChanged:
gets also called and you are trying to do value.length
...
You can fix this issue by checking if newValue
is NSNull
for example, either way this is an issue with your code rather than with XLForm.
Cheers
In the official demo of
InputsFormViewController.m
, add the following code:When I clear the contents of the input, APP will crash.