摘要:从 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 阅读全文
tableview的两个获得重用cell方法的区别
2013-12-12 17:10 by 捉-鱼, 421 阅读, 0 推荐, 收藏,
摘要:新学IOS,碰到个问题tableView:cellForRowAtIndexPath:方法中有两个获得重用cell的方法UITableViewCell*cell=[tableViewdequeueReusableCellWithIdentifier:CellIdentifier]; //1和UITableViewCell*cell=[tableViewdequeueReusableCellWithIdentifier:CellIdentifierforIndexPath:indexPath] //2由于使用的是最新的XCode 5,所以新建出来的TableV... 阅读全文
浙公网安备 33010602011771号