self.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.8f];
iOS 设置视图背景的透明度
原文:http://www.cnblogs.com/xujiahui/p/6906968.html