How to determine if NSString is empty

Posted by Mark S. on Stack Overflow See other posts from Stack Overflow or by Mark S.
Published on 2010-05-09T13:08:07Z Indexed on 2010/05/09 13:18 UTC
Read the original article Hit count: 179

Filed under:
|

What is the best was to determine if an NSString is empty? Right now I am using the following:

if (string == nil || [string isEqualToString:@""]) { // do something }

Thanks for any advice.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about objective-c