Objective-C IF statement with OR condition
You must compare result of two method calls:
if ([currentElement isEqualToString:@"aaa"] || [currentElement isEqualToString:@"bbb"])
The code you have actually compiles as
if ([currentElement isEqualToString:(@"aaa"||currentElement) isEqualToString:@"bbb"])
that is compiler tries to call non-existing isEqualToString:isEqualToString:
method of NSString