invalid mode 报错
来源:互联网 发布:大数据进阶 编辑:程序博客网 时间:2024/06/06 19:53
invalid mode 报错
报错信息如下
*** Assertion failure in -[GroupShadowTableView _dequeueReusableCellWithIdentifier:forIndexPath:usingPresentationValues:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3698.21.8/UITableView.m:7810invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
在iOS10能正常运行,但在iOS11就会carsh,报错信息如上,网上搜的出现这种情况场景比较多,有内存泄露的,也有因xib是控件连线错误的,于是各种验证,各种试,最终找到问题出在哪了,因为cell是自定义高度的,平时都是直接用代码块声明tableView,没注意到这个问题,有问题代码如下
- (UITableViewCell *)groupShadowTableView:(GroupShadowTableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { AutobillingCell *cell = [tableView dequeueReusableCellWithIdentifier:AutoCellIDForList forIndexPath:indexPath]; if (!cell) { cell = [[AutobillingCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:AutoCellIDForList]; } cell.model = self.dataArray[indexPath.section]; return cell;}
把
AutobillingCell *cell = [tableView dequeueReusableCellWithIdentifier:AutoCellIDForList forIndexPath:indexPath];
换成
AutobillingCell *cell = [tableView dequeueReusableCellWithIdentifier:AutoCellIDForList];
搞定收工!
阅读全文
0 0
- invalid mode 报错
- python做工具遇到报错:[Errno 22] invalid mode ('rb') or filename
- Python tarfile模块解压报错 invalid mode ('wb') or filename
- django安装报错error: [Errno 22] invalid mode ('wb') or filename:
- Python报错IOError: [Errno 22] invalid mode ('r') or filename
- python中用open打开文件,报错 IOError:[Error 22] invalid mode ('rb') or filename
- shmget报错Invalid argument
- Matlab 报错:invalid MEX
- junit 测试报错:invalid project specied
- eclipse 导入报错 Invalid project description
- ORACLE insert into 报错 invalid identifier
- Putty打开报错“Invalid Port number”
- Invalid command ‘RewriteEngine’ ubuntu 解决报错。
- mmap报错Invalid argument的解决办法
- eclipse 导入报错 Invalid project description
- thrift+python 报错Invalid method name
- pyspark报错: invalid stream header
- 报错 invalid LOC header (bad signature)
- B/S和C/S的区别及应用
- jquery选择器
- OpenCV拷贝与ROI
- 卷积神经网络(Convolutional Neural Network)
- AndroidStudio(3.0.x版本)输入法无提示问题解决方案
- invalid mode 报错
- leetcode 698. Partition to K Equal Sum Subsets
- 消息机制——MQ
- 电脑无线网络无缘无故自动关闭,适配器正常,网络正常却怎么连都连不上?
- FPGA中韩彬(大神)的异步复位,同步释放方法
- 【代码笔记】【c#】将数组的某一索引位置的元素移动到指定索引位置
- MOV指令、LDR指令、LDR伪指令之间的区别
- 20171122
- Openssl CA证书生成以及双向认证,及windows系统证书批量导出,android cer转bks