Cocoa – Adding mask and overlay to an image

Masking an image in cocoa framework sometimes is not that straightforward as it should be, therefore I’m sharing a code that accomplishes that task in a very simple and neat way. Simply applying mask to an image using CGImageMaskCreate and assigning result image to UIImageView’s image property often doesn’t work properly – the result has [...]

Posted on August 7, 2011 at 11:02 pm by Lubiluk · Permalink · Leave a comment
In: Uncategorized · Tagged with: ,