Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 iOS 项目中,我想用 json 文件中的数据生成一个表,问题是该表是在加载数据之前创建的!
数据加载后如何生成表格?
数据加载完成后,调用[tableView reloadData] 主线程。
[tableView reloadData]
这就是它的要点。祝你好运!