我不怎么做IOS,只是初学者。

本博客说的是一下情况

1、使用storyboard自定义TableViewVC和  TableViewCell的时候,如果直接在VC的图里边新建了一个自定义cell,没有分出xib的情况

IOS 使用storyboard,自定义TableViewCell的坑,dequeueReusableCellWithIdentifier 报错

 

我新建了一个UITableViewController,在里边新建了一个自定义Cell

IOS 使用storyboard,自定义TableViewCell的坑,dequeueReusableCellWithIdentifier 报错

 

 

IOS 使用storyboard,自定义TableViewCell的坑,dequeueReusableCellWithIdentifier 报错

 

 注意,这里要加入idntifier,这是一定要写的,而在VC里边,也不能使用tableview 的register nib的方法

不然就会在dequeueReusableCellWithIdentifier 报错。

 

相关文章:

  • 2021-10-27
  • 2022-01-15
  • 2021-08-08
  • 2021-08-18
  • 2021-06-29
  • 2021-08-20
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-07-22
  • 2021-12-13
  • 2021-09-21
相关资源
相似解决方案