if statement is giving me some trouble

Posted by kevin Mendoza on Stack Overflow See other posts from Stack Overflow or by kevin Mendoza
Published on 2010-06-11T04:51:09Z Indexed on 2010/06/11 5:03 UTC
Read the original article Hit count: 255

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 typo here that I'm not seeing?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk-3.0