iOS 设置视图背景的透明度

 self.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.8f];

原文地址:https://www.cnblogs.com/xujiahui/p/6906968.html