zoukankan      html  css  js  c++  java
  • 错误:'-[UITableViewController loadView] instantiated view controller with identifier "CDHomeTableVC" from storyboard "Main", but didn't get a UITableView.'

    错误'-[UITableViewController loadView] instantiated view controller with identifier "CDHomeTableVC" from storyboard "Main", but didn't get a UITableView.'

    最近在写swift时候老是遇到这个错误后面找了些资料总结下记录下错误原因:

      在写代码时候我在Storyboard 第一次拖得是个ViewController 普通视图,但是后面项目需求改变了视图,需要的是tableViewController,更换后运行就会报下面错误:instantiated view controller with identifier "CDHomeTableVC" from storyboard "Main", but didn't get a UITableView.' 后面查看资料才知道在tableViewController 没有view  而ViewController普通视图中有view 我把view 删除后运行就没有问题,应该是我tableView 直接覆盖在view 导致的问题,删除后就没有任何问题以后得注意Storyboard配套使用。

  • 相关阅读:
    匿名对象
    封装性
    1 Django初探
    8 定制10MINs 3
    7 定制10MINs首页2
    5-1 练习css 总结
    6.定制10MINS首页1
    3-1 练习 HTML 总结
    5. css定位 居中
    4 CSS的20/80个知识点
  • 原文地址:https://www.cnblogs.com/tanglie/p/7526774.html
Copyright © 2011-2022 走看看