JSONKit 的几个错误

前端之家收集整理的这篇文章主要介绍了JSONKit 的几个错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

替换

object->isaobject_getClass(object)

object_setClass(id,object)

bit masking for introspection of objective-c 警告

#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"

BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;

#pragma clang diagnostic pop

其他警告 %lu 替换 %u

原文链接:https://www.f2er.com/json/290306.html

猜你在找的Json相关文章