摘要:
先上个例子: NSString * str1 =[nameInput.text stringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]]; NSString * str2 =[passwdInp 阅读全文
摘要:
//判断是否全是空格 + (BOOL) isEmpty:(NSString *) str { if (!str) { return true; } else { NSCharacterSet *set = [NSCharacterSetwhitespaceAndNewlineCharacterSet 阅读全文