设置supperView为半透明,而子视图不受影响的方法
self.subView.backgroundColor= [UIColor blackColor];
self.superView.backgroundColor= [[UIColor blackColor]colorWithAlphaComponent:0.1];

设置supperView为半透明,而子视图不受影响的方法
self.subView.backgroundColor= [UIColor blackColor];
self.superView.backgroundColor= [[UIColor blackColor]colorWithAlphaComponent:0.1];
本文标题:colorWithAlphaComponent
本文链接:https://www.haomeiwen.com/subject/ntncdttx.html
网友评论