SyntaxFix
Write A Post
Hire A Developer
Questions
You should better use this category:
@implementation NSString (Empty) - (BOOL) isWhitespace{ return ([[self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]length] == 0); } @end