摘要: -(BOOL) isEmptyString:(NSString*) string { if([string length]==0){//string is empty or nil return YES; }elseif([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0){ //string is all whitespace return YES; } return NO;} 阅读全文
posted @ 2012-07-09 17:37 Season2009 阅读(240) 评论(0) 推荐(0) 编辑