提问人:shiny 提问时间:6/2/2020 最后编辑:shiny 更新时间:6/2/2020 访问量:325
更改iOS 13 UIPopoverPresentationController模糊和阴影量?
Changing the iOS 13 UIPopoverPresentationController blur and shadow amount?
问:
iOS 13 中 UIPopoverPresentationController 显示的模式弹出视图的外观与 iOS 12 中的外观发生了重大变化。基色较暗,背景阴影不同,弹出框下背景的模糊程度也大不相同。
如果我将弹出框内容的背景设置为纯色、非 alpha 透明色,我不会有任何问题,但我是,我无法弄清楚如何访问显示我的内容的视图/图层来更改内容。
将 设置为完全透明的内容 (alpha = 0.0) 不会给我一个完全透明的弹出框。我实现了一个并尝试使用该方法来访问弹出框内容所在的视图并进行修改,但我似乎找不到它:是 nil,也是 nil(至少在调用该委托方法时是这样)。不是零,绝对是显示弹出框的叠加视图......但这不是我要找的观点。backgroundColor
UIPopoverPresentationController
UIPopoverPresentationControllerDelegate
prepareForPopoverPresentation:
superview()
UIPopoverPresentationController.presentedView()
UIPopoverPresentationController.containerView()
所以。。。我想知道我在这里错过了什么。我非常希望不必实现我自己的,因为我知道这是一种可能性。UIPopoverBackgroundView
popoverBackgroundViewClass
答: 暂无答案
评论