Convert uintptr_t to id<MTLTexture>

对着背影说爱祢 提交于 2019-12-04 17:57:37

I guess you should read about ARC.

You can use __bridge_retained to transfer the ownership of newly created id<MTLTexture> object to uintptr_t code. When you want to convert the uintptr_t back to id<MTLTexture> use __bridge if you don't want to transfer the ownership back or use __bridge_transfer when you do.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!