For some reason, this if statement is giving me an "Expected : before ] token.
if ([ [mine commodity] isEqualToString:@"Gold"] && [gold == YES])
{
[tempMine setAnnotationType:iProspectLiteAnnotationTypeGold];
[mapView addAnnotation:tempMine];
}
is there some ty开发者_如何转开发po here that I'm not seeing?
[gold == YES]
should be gold == YES
. The square brackets are for method invocations, and ==
isn't a method.
精彩评论