0

当我尝试在背景视图中添加掩码时,我在 UIButton 单击时显示 UIMenu。UIMenu 无法显示。

self.view.mask = UIView(frame: self.view.frame)
self.view.mask?.backgroundColor = UIColor.black.withAlphaComponent(0.2)
self.view.mask?.isUserInteractionEnabled = false
4

0 回答 0