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