2
我想刪除除RestaurantLocation或GrayRestaurantLocation之外的所有註釋。NSPredicate question
它是正確的版本嗎?
[mapView removeAnnotations:[mapView.annotations
filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:
@"! ((self isKindOfClass: %@) AND (self isKindOfClass: %@))",
[RestaurantLocation class], [GrayRestaurantLocation class]]] ];