
iOS中tableview返回cell的代理方法,创建cell的这两种方法有什么不同
(1)[tableViewdequeueReusableCellWithIdentifier:@“cell”](2)[tableViewdequeueReusableCe...
(1)[tableView dequeueReusableCellWithIdentifier:@“cell”]
(2)[tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath] 展开
(2)[tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath] 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
1个回答
展开全部
[tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath]
官方描述为:
Returns a reusable table-view cell object for the specified reuse identifier and adds it to the table.
NS_AVAILABLE_IOS(6_0);
而[tableView dequeueReusableCellWithIdentifier:@“cell”]
官方描述为
Returns a reusable table-view cell object located by its identifier.
NS_AVAILABLE_IOS(2_0);
官方描述为:
Returns a reusable table-view cell object for the specified reuse identifier and adds it to the table.
NS_AVAILABLE_IOS(6_0);
而[tableView dequeueReusableCellWithIdentifier:@“cell”]
官方描述为
Returns a reusable table-view cell object located by its identifier.
NS_AVAILABLE_IOS(2_0);
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询