标签:
- (BOOL)isHaveIllegalChar:(NSString *)str{ NSCharacterSet *doNotWant = [NSCharacterSet characterSetWithCharactersInString:@"[]{}(#%-*+=_)\\|~(<>$%^&*)_+ "]; NSRange range = [str rangeOfCharacterFromSet:doNotWant]; return range.location<str.length; }
标签:
原文地址:http://my.oschina.net/SoulJa/blog/503670