We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 表现 tableViewController 在 dealloc 后可能出现 UITableView dataSource returned a nil cell for row at index path 的异常。
UITableView dataSource returned a nil cell for row at index path
其他信息
The text was updated successfully, but these errors were encountered:
开启 qmui_multipleDelegatesEnabled 的对象,即便执行了 obj.delegate = nil,实际上并不会真的把 delegate 置空,而是把 QMUIMultipleDelegates 容器里的对象都清空,但 obj.delegate 依然是指向 QMUIMultipleDelegates 对象。这就会导致当 - [UITableViewController dealloc] 时把 tableView.delegate = nil 后,由于某些原因 tableView 又试图去访问 delegate,就会因为 delegates 被清空,导致 tableView:cellForRowAtIndexPath: 返回一个 nil 的结果,命中系统的 assert。
qmui_multipleDelegatesEnabled
obj.delegate = nil
delegate
QMUIMultipleDelegates
obj.delegate
- [UITableViewController dealloc]
tableView.delegate = nil
tableView:cellForRowAtIndexPath:
Sorry, something went wrong.
已发布 4.5.0 修复该问题。
No branches or pull requests
Bug 表现
tableViewController 在 dealloc 后可能出现
UITableView dataSource returned a nil cell for row at index path
的异常。其他信息
The text was updated successfully, but these errors were encountered: