I would like to have a texture in UILabel.text.
Having done this, I have subclassed UILabel. Using the -drawTextInRect method, I try to get only text to create an image mask using the CGImageMaskCreate function.
After this image mask from the text I try to use to create a new image by calling the function CGImageCreateWithMask.
Is it possible?
Is this the right approach?
How to get image mask from UILabel.text?
source share