Dealloc一个viewcontroller警告 [英] Dealloc a viewcontroller warning

查看:129
本文介绍了Dealloc一个viewcontroller警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这个非常烦人的警告。当我尝试从另一个viewController分配新的viewController时出现问题。有没有人见过这个警告?我该怎么办才能让它消失?解决它对我来说很重要。

I am getting this warning which is very annoying. Problem occurs when I tried to allocate new viewController from another viewController. Has anybody seen this warning before? What can I do to make it disappear? It important for me to fix it.

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"


推荐答案

DispatchQueue.main.async(execute: {
  // put your code to do allocate new viewController from 
  // another viewController here to ensure running in main thread
})

这篇关于Dealloc一个viewcontroller警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆