现在的位置: 首页 > 综合 > 正文

IOS开发各种疑难 二

2014年10月11日 ⁄ 综合 ⁄ 共 459字 ⁄ 字号 评论关闭

1、 Implicit conversion of 'BOOL' (aka 'signed char') to 'id' is disallowed with ARC

解决:

[NSNumbernumberWithBool:value]

2、-[UILabel copyWithZone:]: unrecognized selector sent to instance 

解决:UILabel不能为title

3、ios使用AdMob出错-[GADObjectPrivate changeState:]: unrecognized selector sent

解决方法:在Build
Settings 中的Other Linker Flags中加入-ObjC 

4、

-[__NSCFString absoluteURL]: unrecognized selector sent to instance 0xbb9e240

解决方法:问题出在编写nsurl的时候直接用string了,setURL:string]];改为setURL:[NSURL
URLWithString:string]];

抱歉!评论已关闭.