用于IOS应用的表单验证库:ValidateIt
jopen
11年前
validateIt
用于IOS应用的表单验证库
Options
可以验证:
email address,
required text field,
minimum length,
maximum length,
lettwers and space only.
示例
//====== Initialize The Validation Library validation *validate=[[validation alloc] init]; //====== Pass In the textField and desired textFieldName for each validation method [validate Email:self.email FieldName:@"Email Address"]; [validate Required:self.email FieldName:@"Email Address"]; [validate Required:self.password FieldName:@"Password"]; [validate MaxLength:12 textField:self.password FieldName:@"User Password"]; [validate isValid];