简体   繁体   English

如何更改模态演示ios13的背景颜色?

[英]How to change background color of modal presentation ios13?

In iOS 13 we have new modal presentation behavior like this:iOS 13中,我们有如下新的模态表示行为:

在此处输入图像描述

How to change background .black color?如何更改背景.black颜色?

That color is the background color of your window.该颜色是 window 的背景颜色。 So, assuming that you have a reference to it, the example below:因此,假设您有对它的引用,下面的示例:

window?.backgroundColor = UIColor.red

would produce:会产生:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM