NSDictionary 中的 valueForKey 与 objectForKey 的区别
摘要:从 NSDictionary 取值的时候有两个方法,objectForKey: 和 valueForKey:,这两个方法具体有什么不同呢?先从 NSDictionary 文档中来看这两个方法的定义:objectForKey: returns the value associated with aKey, or nil if no value is associated with aKey. 返回指定 key 的 value,若没有这个 key 返回 nil.valueForKey: returns the value associated with a given key. 同样是返回指定 k
阅读全文
posted @ 2012-07-19 19:31
浙公网安备 33010602011771号