I have one Imageview that contains the Image . And one Mask Shape that contains shape of rabbit. I have one code that gives the below result.
- (UIImage*)myn
You should look through blendMode. Try smth like this:
[rabbitImage drawInRect:rect blendMode:kCGBlendModeDestinationOut alpha:1.0];