Objective-C 报错:Implicit conversion of 'BOOL' (aka 'bool') to 'id' is disallowed with ARC

yufei       1 年, 6 月 前       858

Objective-C 报错:Implicit conversion of 'BOOL' (aka 'bool') to 'id' is disallowed with ARC

解决办法很简单,就是用 @(变量) 包裹一下就好,例如

BOOL isOk =[DouyinOpenSDKShareRequest supportMixMode];
result(@(isOk));
目前尚无回复
简单教程 = 简单教程,简单编程
简单教程 是一个关于技术和学习的地方
现在注册
已注册用户请 登入
关于   |   FAQ   |   我们的愿景   |   广告投放   |  博客

  简单教程,简单编程 - IT 入门首选站

Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.