Concuror
Concuror

Reputation: 408

How to show UIImage background through transparent pixels of image

I have an image, that has transparent areas and a known backround. But wheh I set "image" property of the UIImage i see main view and not a color which i set in "background" property.

Upvotes: 0

Views: 378

Answers (2)

Concuror
Concuror

Reputation: 408

Had to create custom control with two UIImageViews bounded by obu UIView. It works, but i would prefer apple doing something about this behaviour

Upvotes: 0

Bastian
Bastian

Reputation: 10433

I think I tried that before and found no real solution. You could however put the uiimageview into an uiview with the same size and set the backgroundcolor to this view.

Upvotes: 1

Related Questions