![](/img/trans.png)
[英]how to set presentation over fullscreen to show translucent view in iOS 7
[英]How can set the background of the moda view to be Translucent?
我通过点击一个按钮来调用我的ModalViewController。 我希望此ModalViewController具有如下的半透明背景:
当我使用[self.view setBackgroundColor:[UIColor clearColor]]; 它给了我黑色背景:
[modalView.view setBackgroundColor:[UIColor clearColor]];
或者如果您想降低不透明度
[modalView.view setalpha:0.4]; //range is from 0(transparent) to 1(opaque)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.