UIColor -colorWithAlphaComponent

view.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.7]; //颜色透明度
原文地址:https://www.cnblogs.com/yintingting/p/4545629.html