我想删除除RestaurantLocation或GrayRestaurantLocation之外的所有注释。
它是正确的版本吗?
[mapView removeAnnotations:[mapView.annotations
filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:
@"! ( (self isKindOfClass: %@) AND (self isKindOfClass: %@) )",
[RestaurantLocation class], [GrayRestaurantLocation class]]] ];
发布于 2011-05-26 21:49:53
批注不能既是RestaurantLocation又是GrayRestaurantLocation。
将AND
更改为OR
。
https://stackoverflow.com/questions/6139172
复制相似问题