I'm not sure what I'm doing wrong, but Xcode keeps saying "Expected expression". What is wrong with the else if, or statement below?
else if ([currentClass rangeOfString:@"English"].location != NSNotFound) || ([currentClass rangeOfString:@"Literature"].location != NSNotFound) {
cell.imageView.image = [UIImage imageNamed:@"englishicon.png"];
}
Thanks for your help
You have to wrap your if statement between parentheses.
if (([currentClass rangeOfString:@"English"].location != NSNotFound) || ([currentClass rangeOfString:@"Literature"].location != NSNotFound)) {
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With