/ Published in: iPhone
URL: www.sagarrkothari.blogspot.com
Expand |
Embed | Plain Text
// predicates NSPredicate *nameTest; NSPredicate *mailTest; mailTest = [[NSPredicate predicateWithFormat:@"SELF MATCHES %@", @"[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,6}"] retain]; BOOL isNameOK=[nameTest evaluateWithObject:txtSignUpUserName.text]; BOOL isEmailOK=[mailTest evaluateWithObject:txtSignUpEmail.text];
You need to login to post a comment.
