Yes, this is a formal change. So you need to handle this
// For iOS 6 if (![self.tf.text isEqualToString:@""]) { } // For iOS 7 if (self.tf.text != nil && [self.tf.text length] != 0) { }
or
This condition is for iOS 7 and earlier.
if([self.tf.text length] != 0) { // do your stuff }
Dharmbir singh
source share