我正在使用以下代码合并两个UIImages,不知道是否有更快的方法。
- (UIImage*) combineImage: (UIImage*) aImage
{
UIGraphicsBeginImageContext(self.size);
[self drawInRect: CGRectMake(0, 0, self.size.width, self.size.height)];
[aImage drawInRect: CGRectMake(0, 0, self.size.width, self.size.height)];
UIImage* combinedImage = UIGraphicsGetImageFromCurrentImageContext(); //
UIGraphicsEndImageContext();
return combinedImage;
}