【问题标题】:Dealloc a viewcontroller warning解除视图控制器警告
【发布时间】:2017-01-27 07:53:29
【问题描述】:

我收到了这个非常烦人的警告。当我尝试从另一个 viewController 分配新的 viewController 时出现问题。以前有人看过这个警告吗?我该怎么做才能让它消失?修复它对我来说很重要。

2016-09-19 16:55:09.216523 App[5204:1274804] [Common] _BSMachError: port e26f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2016-09-19 16:55:09.217554 App[5204:1274804] [Common] _BSMachError: port e26f; (os/kern) invalid name (0xf) "Unable to deallocate send right"

【问题讨论】:

标签: ios xcode memory-management


【解决方案1】:
DispatchQueue.main.async(execute: {
  // put your code to do allocate new viewController from 
  // another viewController here to ensure running in main thread
})

【讨论】:

    猜你喜欢
    • 2011-07-24
    • 2015-07-16
    • 2012-02-25
    • 1970-01-01
    • 2011-08-18
    • 2018-01-03
    • 2013-11-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多