【发布时间】:2015-11-01 13:42:45
【问题描述】:
【问题讨论】:
标签: ios cocoa-touch uiview background-color
【问题讨论】:
标签: ios cocoa-touch uiview background-color
你可以设置 UIPopoverPresentationController 的backgroundColor。如果这还不够,您将不得不自定义弹出框的UIPopoverBackgroundView。这使您可以控制整个弹出框背景,包括小三角形。
【讨论】:
popover.backgroundColor = [UIColor clearColor]; 仍然没有为我解决。这比它应该的更难。
这里有一些代码来补充马特的答案。
popoverController.popoverPresentationController?.backgroundColor = myColor
或
self.navigationController?.popoverPresentationController?.backgroundColor = myColor
【讨论】: