透明的UIPopover [英] Transparent UIPopover
本文介绍了透明的UIPopover的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法让UIPopOver透明(alpha = 0.75左右)。不幸的是,UIPopOver没有alpha属性。我需要提供一个弹出窗口,以便它下面的视图仍然是部分可见的。任何想法
Is there a way to make the UIPopOver transparent (alpha = 0.75 or so). Unfortunately there is no alpha property for UIPopOver. I need to present a popover so that the view beneath it will still be partially visible. Any ideas
推荐答案
popoverController.contentViewController.view.alpha = 0.5;
alpha是UIView的属性,所以你需要获取popOver的视图然后设置该视图的alpha。
alpha is an property of an UIView so you need to get the view of the popOver and then set the alpha to that view.
这篇关于透明的UIPopover的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文