
( { GPSodometerReading = "11843.6"; "_ID" = { "$oID" = 5656e7175201edbb16a483f4; }; acc = 0; ) 那么如何知道我的数组是否包含字典?
谢谢.
解决方法 你需要在数组和数组上进行累积.检查每个对象的类,如下所示BOol isContainsDict = NO;for (ID value in Array){ if ([value isKindOfClass:[NSDictionary class]]){ isContainsDict = YES; break; // end since you only want to kNow if the array contains an instance of dictionary. if it does no need to continue the loop just break and perform the process }} 总结 以上是内存溢出为你收集整理的ios – 如何知道我的数组是否包含字典?全部内容,希望文章能够帮你解决ios – 如何知道我的数组是否包含字典?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)