要做到如下图所示的界面,就需要如标题那样

到底要怎么做呢?
只需要给父视图设置透明度的时候,换一种写法就好了,如下面的代码
firstVC.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.6];
搞定.
要做到如下图所示的界面,就需要如标题那样
到底要怎么做呢?
只需要给父视图设置透明度的时候,换一种写法就好了,如下面的代码
firstVC.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.6];
搞定.
本文标题:设置父视图的透明度并且不影响子视图的透明度
本文链接:https://www.haomeiwen.com/subject/saqjottx.html
网友评论