UIImage masked with Label

suggest change

This makes image masked to the shape of the letters of the label:

Objective-C

self.maskImage.layer.mask = self.maskLabel.layer;
self.maskImage.layer.masksToBounds = YES;

Swift 3

maskImageView.mask = maskLabel
maskImageView.masksToBounds = true

Here is the result:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents