Objective-C
我只是将一些代码移植到,MonoTouch
但我被困在这里
UIColor *color = ARandomColor(); // ARandomColor Returns a Random UIColor ;)
@synchronized(self) {
[_annotationDict enumerateKeysAndObjectsUsingBlock:^(NSNumber *page, NSArray *annotations, BOOL *stop) {
[annotations makeObjectsPerformSelector:@selector(setColor:) withObject:color];
[self.providerDelegate updateAnnotations:annotations originalAnnotations:nil animated:YES];
}];
}
什么是MonoTouch
等价于@synchronized
and enumerateKeysAndObjectsUsingBlock
?
亚历克斯