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
if ([strpass isEqual:[NSNull null]] || strpass==nil || [strpass isEqualToString:@""] || [strpass isEqualToString:@"(null)"] || strpass.length==0 || [strpass isEqualToString:@""]) { //string is blank }