标签:style class code ext color width
方法一:
if([[dictionary allKeys] containsObject:key){
// contains key}
方法二:
if([dictionary objectForKey:key]){ //objectForKey will return nil if a key doesn‘t exists.
// contains key}
如何判断NSDictionary是否包含某个键,布布扣,bubuko.com
标签:style class code ext color width
原文地址:http://www.cnblogs.com/ejllen/p/3784521.html