NSString *rawString = [textField text];
NSCharacterSet *whitespace = [NSCharacterSet whitespaceAndNewlineCharacterSet];
NSString *trimmed = [rawString stringByTrimmingCharactersInSet:whitespace];
if ([trimmed length] == 0) {
// Text was empty or only whitespace.
}
I'm excited to discover this great site. I want to to thank you for ones time for this fantastic read!!
ReplyDeleteI definitely really liked every little bit of it and I have you saved as a favorite to
look at new information in your web site.
Here is my web page :: Desert plants