- (BOOL)isEmptyString:(NSString *) string {
if([string length] == 0) { //string isempty or nil
return YES;
}
else if([[stringstringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]]length] == 0) {
//string is all whitespace
return YES;
}
return NO;
}