[英]iOS Modal ViewController with Transparent BG and Opaque Foreground
[英]How to set viewController bg transparent so that bg colour of the pageViewController remains standard background for all viewcontrollers?
在下图中,viewController背景为白色,而pageViewController背景颜色为可见。 如何清除或透明化viewController背景,以便紫色是所有viewController的标准背景色。
重写init方法和self.modalPresentationStyle = UIModalPresentationCustom;
,然后将backgroudcolor设置为clearColor。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.