SyntaxFix
Write A Post
Hire A Developer
Questions
Use the -isEqualToString: method to compare the value of two strings. Using the C == operator will simply compare the addresses of the objects.
-isEqualToString:
==
if ([category isEqualToString:@"Some String"]) { // Do stuff... }