gpt4 book ai didi

ios : Assertion failure UITableView dataSource is not set

转载 作者:行者123 更新时间:2023-12-03 18:35:17 29 4
gpt4 key购买 nike

为什么我会收到这样的错误?在我的应用程序中,我正在表 View 中加载 webview。

*** Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableView.m:6048
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource is not set'

最佳答案

在我的例子中,当我在 viewDidLoad 中设置它的 .date 属性时,它是一个 DatePicker 抛出错误。当我将代码移动到 viewDidAppear 时,问题就消失了。

此错误仅在 iPhone 4s 中发生,其他更高版本的机型、iPhone 或 iPad 均不会发生。

关于ios : Assertion failure UITableView dataSource is not set,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12741127/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com