xib使用过程中报错及解决办法

错误原因:“nib must contain exactly one top level object which must be a UITableViewCell instance”“nib必须恰好包含一个顶级对象,该对象必须是UITableViewCell实例”

因为在xib界面该错误是在 xib 中的 cell 的同一层级出现了其他的控件,检查一下 xib 中左边的层级关系,让 cell 是唯一的控件就可以了。xib报错“nib must contain exactly one top level object which must be a UITableViewCell instance”

好好查找一个 删除多余的视图变成下面的就OK了

xib报错“nib must contain exactly one top level object which must be a UITableViewCell instance”

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-09-18
  • 2022-01-24
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2021-04-11
  • 2021-08-11
  • 2021-08-11
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案