I created a NSMutableAttributedString
and I'm appending the value dynamically. I need to check if this string is nil
or not. I manually assigned nil
but still the condition below fails. Is there any way to check this?
attribStr = [[NSMutableAttributedString alloc] init];
attribStr = nil;
if([attribStr isEqualToAttributedString:nil]) { // doesn't execute}