I am working on an app that loads images from my server. These images are all different sizes. So I was wondering - it is possible to detect the background colour of an image or its most prominent colour?
The reason behind this is I would like the UIView behind the UIImage to change its background colour based on the UIImage. So for example say I have a UIImage that has an iPhone sitting on a blue table I would like to detect that colour blue and use it as the background colour for the UIView.
Is this at all possible?