i have a UIView in which i am drawing a shirt using Paint Code. i have to apply an png image which will be the pattern of the shirt. The pattern when added spreads outside of the shirt. How to make the image not spread outside the shirt.
the gray background is the UIView which is used to draw the shirt Image.
the polka dot is the pattern which i want to apply to the image , how can i not make it spread?