摘要: NSString *password = @"12 34";[password stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 阅读全文
posted @ 2015-01-09 16:03 shidaying 阅读(185) 评论(0) 推荐(0) 编辑
摘要: //利用正则表达式验证邮箱的合法性-(BOOL)isValidateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate... 阅读全文
posted @ 2015-01-09 15:50 shidaying 阅读(968) 评论(0) 推荐(0) 编辑