Understanding NSString comparison
The reason why == works is because of pointer comparison. When you define a constant NSString using @””, the compiler uniquifies the reference. When the same constants are defined in other places in your code, they will all point to the same actual location in memory. When comparing NSString instances, you should use the isEqualToString: … Read more