If NSString is not equal to function?

I searched everywhere for this, including apple docs on NSString (maybe I haven't seen it?), But I'm trying to find a method in xCode to check that NSString is not matching something. Very similar to

if (myNSSting = @"text" {... 

Also, I want to check if this matches "text".

+7
source share
2 answers
  if(![myNSString isEqualToString:@"text"]) 
+31
source

For case insensitive comparisons, we can process:

  if( [@"Some String" caseInsensitiveCompare:@"some string"] == NSOrderedSame ) { // strings are equal except for possibly case } 
+3
source

All Articles