`
119568242
  • 浏览: 420675 次
  • 性别: Icon_minigender_1
  • 来自: 深圳/湛江
社区版块
存档分类
最新评论

[ios]-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] ERROR

    博客分类:
  • ios
 
阅读更多

-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] ERROR

UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x7257800'

 今天新建立一个TableView的时候,偶然发现这样的错误,因为用的是XCode自己生成的代码,好奇怪,想了想到底是为什么呢?

看了下Documents,oh shit!我用的Base 是5.0SDK.

?

Available in iOS 6.0 and later.

 遂改之:

UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics