IOS開發各種疑難 二

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]];

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章