iOS12-crash错误-reason: 'UITableView failed to obtain a cell from its dataSource'
错误原因:
cellForRowAtIndexPath
函数返回了nil
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath)// Configure the cell...return cell}
复制代码
解决方法:
检查:
1.storyboard上有没有给cell加identifier
2.identifier有没有写错
3.函数本身是不是还没实现
4.if else返回其中一个cell时的判断错乱了
5.想到再加
广告时间:小弟的iOS12零基础视频教程(每章皆可试听):
m.study.163.com/provider/48…
iOS12-crash错误-reason: 'UITableView failed to obtain a cell from its dataSource'相关推荐
- Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsEx
我的是再宿主机连接虚拟机的时候报的这个错 The last packet sent successfully to the server was 0 milliseconds ago. The dri ...
- failed to obtain node locks, tried with lock id [0]; maybe these locations are not writable or multi
具体错误信息 {"log":"{\"type\": \"server\", \"timestamp\": \& ...
- org.springframework.jdbc.CannotGetJdbcConnectionException Failed to obtain JDBC Connection
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection:nested e ...
- 关于Elasticsearch 报错failed to obtain node locks....
在学习Elasticsearch的时候出现了一下错误: 版本:7.12.1 java.lang.IllegalStateException: failed to obtain node locks, ...
- caddy 获取SSL证书报错解决:failed to obtain certificate: acme: Error - One or more domains had a problem
此文首发于我的Jekyll博客:zhang0peter的个人博客 早上尝试使用caddy,启动HTTPS服务,并自动配置TLS证书,结果在自动配证书的过程中报错: -> # sudo syste ...
- 调试Release发布版程序的Crash错误
订阅 调试Release发布版程序的Crash错误 http://dingchaoqun12.blog.163.com/blog/static/116062504201152834814661/ 在W ...
- flutter pub get错误pub get failed和Downloading CanvasKit问题
flutter pub get错误pub get failed和Downloading CanvasKit问题 这种问题一般都是网络问题 以macOS 或者与 Linux 相近的系统为例, $ exp ...
- 【Elasticsearch】分片未分配 (UNASSIGNED) failed to obtain in-memory shard lock
1.概述 转载:https://www.cnblogs.com/keitsi/p/13726453.html 获取分片分配解释 执行命令 GET /_cluster/allocation/explai ...
- Android NDK开发Crash错误定位
在Android开发中,程序Crash分三种情况:未捕获的异常.ANR(Application Not Responding)和闪退(NDK引发错误).其中未捕获的异常根据logcat打印的堆栈信息很 ...
最新文章
- 使用window任务计划
- 第一个程序实现登录功能,密码输错三次封账号。
- Oracle 数据库连接失败问题
- vuepress侧边栏配置_VuePress搭建静态博客网站
- python调用接口实例化_python 类静态方法实例化另一个类对象的问题?
- 订体育馆订健身房的方法
- 第三课 泛型+反射封装数据库访问层 2019-04-02
- nssl1249-C【数论】
- 红帽Openshift:入门–云中的Java EE6
- java代码启动spring_javascript - 从JavaScript调用Java代码( Spring 启动)
- C# Linq以及反射总结
- Ural 1043 Cover the Arc
- paip.android环境搭建与开发事例
- myeclipse与mysql连接_myeclipse 与 mysql 的连接
- 如何通过IDEA看Java源码
- WBE15—HttpServletRequest
- plc控制系统设计步骤
- 力扣 2104. 子数组范围和
- 参考文献中英文人名_参考文献英文人名的缩写规则
- 聚类算法之K-Means,K-Means++,elkan K-Means和MiniBatch K-Means算法流程