I am creating a UIView containing some text that partially covers a UIImageView. I want the user to be able to read the text and still maintain a perspective on the image underneath. I have tried setting the background color to [UIColor clearColor], but then the background is totally transparent and it is hard to read the text depending upon the image colors.
If I lower the view.alpha=0.5 the whole view including the text is partially transparent. What I’d like is to maintain the text and reduce the transparency of the background partially, allowing the image to show through.
I think what you mean is you want the backgroundColor of your UIView to be semi transparent? If you want white/transparent use this:
else if you want it to be another color use the general UIColor method:
+colorWithRed:green:blue:alpha: