用这个方法即可:
[self setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.3]];
本文标题:设置透明背景,并且不影响子视图的透明度
本文链接:https://www.haomeiwen.com/subject/pxtbyttx.html
网友评论