I am trying to compare the annotation title with title values to put different annotation image for different annotations. I tried to compare like in PHP:
if(title == "parking" || title = "car")
{
}
in Objective C I tried to do it like:
if([[annotation title] isEqualToString:@"Parking" || [annotation title] isEqualToString:@"Peace Hall" ] )
{
}
but it did not work. How can I accomplish this ?
Looks like you just messed up the syntax. Try this: