Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 PopoverPresentationController,它需要有黑色背景,我应用了背景颜色,但箭头没有蒙皮或着色,附加的是图像的外观。POPController 里面有 tableview。
我们无法移除弹出框控制器的箭头。如果您不需要箭头,则需要自定义自己的视图。如果要更改背景颜色
popOver.popoverPresentationController.sourceRect = btn.bounds; popOver.popoverPresentationController.sourceView = btn; popOver.popoverPresentationController.backgroundColor = [UIColor redColor];