我一直在努力找出怎样才能解决这个问题。
在这一行中,popover.permittedArrowDirections = ( .Up | .Down )说:“没有更多的上下文,表达式的类型是矛盾的。”
下面是代码示例:
if let popover = alert.popoverPresentationController
{
popover.sourceView = imageView
popover.sourceRect = imageView.bounds
popover.permittedArrowDirections = ( .Up | .Down )
}发布于 2015-10-22 18:48:11
请使用以下代码:
popover.permittedArrowDirections = [ .Up, .Down ]https://stackoverflow.com/questions/33288398
复制相似问题