layer.renderInContext doesn't take layer.mask into account?
问题 I'm trying to render some UIImages into 1 single image that I can save in my photo album. But it seems to as if the layer.renderInContext doesn't take a layermask into account? Current behavior: the photo saves, and I see mosaicLayer, without the masking effect of maskLayer. Expected behavior: the photo saves and I see the image in my view, with on top of that a masked mosaicLayer. I use the following code to mask the image UIImage *maskImg = [UIImage imageWithContentsOfFile:[[NSBundle