views:

29

answers:

2

alt text

How to do like that? I don't know how to do..Help me.

+1  A: 

Two ways... First, if you're using a PNG as the background image for the view, the PNG needs to be semi-transparent.

Second, if you're going to select a color for the background, you can do it programatically:

UIColor *backgroundColor = [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.5]; //create a translucent gray background
view.backgroundColor = backgroundColor; // set your view's background color to the new background color
Dustin Pfannenstiel
I should mention that the "alpha" is the opacity of the color.
Dustin Pfannenstiel
+1  A: 

UIImageView is a subclass of UIView, which has an alpha property that can be set to enable transparency, values from 0 to 1.

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/doc/uid/TP40006816-CH3-SW29

example:

MyView.alpha = 0.5;

Eric Schweichler