【问题标题】:How to present popover ArrowDirections properly in iOS 9 swift如何在 iOS 9 swift 中正确显示 popover ArrowDirections
【发布时间】:2015-10-22 18:43:17
【问题描述】:

我一直在试图找出如何解决这个问题。

在这一行popover.permittedArrowDirections = ( .Up | .Down ) 上面写着“表达式类型不明确,没有更多上下文。”

代码示例如下:

if let popover = alert.popoverPresentationController
        {
        popover.sourceView = imageView
        popover.sourceRect = imageView.bounds
        popover.permittedArrowDirections = ( .Up | .Down )
        }

【问题讨论】:

    标签: ios xcode swift popover


    【解决方案1】:

    请使用以下代码:

    popover.permittedArrowDirections = [ .Up, .Down ]
    

    【讨论】:

      猜你喜欢
      • 2015-10-28
      • 1970-01-01
      • 2021-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-16
      • 1970-01-01
      相关资源
      最近更新 更多