D
D
dimib2014-09-13 14:32:04
iOS
dimib, 2014-09-13 14:32:04

How to assign a background color to a UIImageView that is below it?

Good day.
I have two pictures of different sizes superimposed on each other. The bottom picture consists of two colors: white and red. Tell me how to make the background-of the top image assigned the color of the bottom one?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smanioso, 2014-09-14
@smanioso

Use the UIImage class method:

+ (UIColor *)colorWithPatternImage:(UIImage *)image

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question