I was using this in my iPhone app
if (title == nil) { // do something }
but it throws some exception, and the console shows that the ti
For string:
+ (BOOL) checkStringIsNotEmpty:(NSString*)string { if (string == nil || string.length == 0) return NO; return YES;
}
Refer the picture below: