【问题标题】:UIActionSheet dismissed with outside tap hangs interface on iPadUIActionSheet 在 iPad 上因外部点击挂起界面而被解雇
【发布时间】:2014-07-11 03:30:09
【问题描述】:

我很确定这是一个 Xcode 错误,但我想在这里从智囊团中剔除它,以确保我没有遗漏任何明显的东西。

在最新的 Xcode 中构建一个标准的 Master-Detail Swift 应用程序。将操作表行(参见下面的代码)添加到 didSelectRowAtIndexPath。应用程序适用于 iPhone 模拟器,但对于 iPad,如果您点击 ActionSheet 以将其关闭,界面就会挂起。没有崩溃,但是当为 iPad 模拟器而不是 iPhone sim 显示操作表时,我确实看到了这一点:

2014-07-10 22:24:26.661 totMasterDetail[33543:1903550] 
Assuming sourceView is not nil
2014-07-10 22:24:26.670 totMasterDetail[33543:1903550] 
Assuming sourceView is not nil

在文档或发行说明中看不到任何内容:错误,还是我遗漏了一些明显的东西?

(如果不是我,我会向 Apple 提交错误)

一如既往,非常感谢!

    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
    if UIDevice.currentDevice().userInterfaceIdiom == .Pad {
        let object = objects[indexPath.row] as NSDate
        self.detailViewController!.detailItem = object
    }
    let actionSheet = UIActionSheet()
    actionSheet.addButtonWithTitle("title")
    actionSheet.showInView(self.tableView)

}

【问题讨论】:

  • 仅供参考:向 Apple 报告

标签: uitableview swift uiactionsheet


【解决方案1】:

在 Xcode 6 beta 4 中为我修复

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-03
    相关资源
    最近更新 更多