Check if NSString NULL

//if statement for checking NSString is NULL or NOT NULL

if([str isEqual: [NSNull null]])

NSLog(@"null");

else

NSLog(@"not null");

No comments:

Post a Comment