Form validation

Are there any material and tutorials about how to validate a form? For example, how to make sure the field is not empty, or the value is in between a range etc …

Write a function to do those things. Run your function before you do anything else

Something like:

Func isValidateData() -> Bool {
If textbox.text == “”
{
return false
}
}