user3896519
user3896519

Reputation: 515

transparent png iOS Swift

I am trying to have a transparent png display as a popover. I have tried adding the image to a view controller and setting the background color to UIColor.clearcolor(). However, I am not having any luck.

Upvotes: 0

Views: 811

Answers (2)

Armin
Armin

Reputation: 1150

Are you using a UIPopoverController ? Have you tried changing the backgroundColor property of your UIPopoverController instance?

Upvotes: 0

Josh Gafni
Josh Gafni

Reputation: 2881

Have you tried setting the alpha of the view to something between 0 and 1?

Upvotes: 0

Related Questions