我正在尝试对MKAnnotation应用颜色填充。我发现了一些非常有效的代码,但由于某种原因,填充图像在应用填充后颠倒了。这是我在map图钉上运行的当前代码。CGRectrect=CGRectMake(0,0,self.image.size.width,self.image.size.height);UIGraphicsBeginImageContext(self.image.size);CGContextRefcontext=UIGraphicsGetCurrentContext();CGContextClipToMask(context,rect,self.image.CGImag