JSONKIT : format specifies type 'unsigned long' but the argument has type 'nsuinteger' (aka 'unsigned int')


Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()

object->isa 替换为 object_getClass(object) 10处左右
keyObject->isa 替换为 object_getClass(keyObject) 一处
(id)keys[idx]->isa 替换为 object_getClass((id)keys[idx]) 一处

format specifies type 'unsigned long' but the argument has type 'nsuinteger' (aka 'unsigned int')

给变量增加(unsigned long)进行类型转换

//// 原来的,但是警告:Using 'stringWithString:' with a literal is redundant
////[self appendUTF8Body:body dataString:[NSString stringWithString:@"Content-Type: image/png\r\nContent-Transfer-Encoding: binary\r\n\r\n"]];

             
//解决:
NSString *string = @"Content-Type: image/png\r\nContent-Transfer-Encoding: binary\r\n\r\n";
[self appendUTF8Body:body dataString:string];

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM