ios validate有什么作用
答案:2 悬赏:60 手机版
解决时间 2021-01-28 19:09
- 提问者网友:心牵心
- 2021-01-27 20:57
ios validate有什么作用
最佳答案
- 五星知识达人网友:鸠书
- 2021-01-27 21:15
千锋扣丁学堂iOS开发学习为您解答:
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];
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];
全部回答
- 1楼网友:往事隔山水
- 2021-01-27 22:34
支持一下感觉挺不错的
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯