为什么 reloadData 在 ViewController 中为我的 tableView 显示错误? [英] Why reloadData is showing error for my tableView inside ViewController?
本文介绍了为什么 reloadData 在 ViewController 中为我的 tableView 显示错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在视图控制器中有一个 tableView,但是 reloadData 不适用于 tableView.Xcode 显示错误 thread1: exc_bad_instruction.我试图将 reloadData 分配给其他方法,但结果是一样的?我该如何解决?在此处输入图片说明
I have a tableView inside the view controller, however reloadData is not working for the tableView. Xcode shows error thread1: exc_bad_instruction. I tried to assign reloadData to other methods but the result is same? How can i fix it?enter image description here
推荐答案
您的插座 myTableView
未连接到 Storyboard 中的 TableView.
Your outlet myTableView
did not connect to a TableView in Storyboard.
这篇关于为什么 reloadData 在 ViewController 中为我的 tableView 显示错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文