-- ::39.220 TTS[:] cell0 create
-- ::39.221 TTS[:] *** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29./UITableView.m:
-- ::39.228 TTS[:] [ Uncaught Exception ]
Name: NSInternalInconsistencyException, Reason: UITableView (<UITableView: 0x7f84ba818600; frame = ( ; ); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7f84b955a7b0>; layer = <CALayer: 0x7f84b9555820>; contentOffset: {, }; contentSize: {, }>) failed to obtain a cell from its dataSource (<HomeViewController: 0x7f84b96b6a70>)
[ Fe Symbols Start ]
CoreFoundation 0x00000001104e1f45 __exceptionPreprocess +
libobjc.A.dylib 0x00000001145bddeb objc_exception_throw +
CoreFoundation 0x00000001104e1daa +[NSException raise:format:arguments:] +
Foundation 0x00000001142095ee -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] +
UIKit 0x0000000112d8e960 -[UITableView _configureCellForDisplay:forIndexPath:] +
UIKit 0x0000000112d99e58 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] +
UIKit 0x0000000112d99f3f -[UITableView _createPreparedCellForGlobalRow:willDisplay:] +
UIKit 0x0000000112d6f307 -[UITableView _updateVisibleCellsNow:isRecursive:] +
UIKit 0x0000000112da2d1c -[UITableView _performWithCachedTraitCollection:] +
UIKit 0x0000000112d8a884 -[UITableView layoutSubviews] +
UIKit 0x0000000112cf8e40 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] +
QuartzCore 0x00000001123f559a -[CALayer layoutSublayers] +
QuartzCore 0x00000001123e9e70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE +
QuartzCore 0x00000001123e9cee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE +
QuartzCore 0x00000001123de475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE +
QuartzCore 0x000000011240bc0a _ZN2CA11Transaction6commitEv +
QuartzCore 0x000000011240c37c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv +
CoreFoundation 0x000000011040d947 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ +
CoreFoundation 0x000000011040d8b7 __CFRunLoopDoObservers +
CoreFoundation 0x000000011040350b __CFRunLoopRun +
CoreFoundation 0x0000000110402e08 CFRunLoopRunSpecific +
GraphicsServices 0x00000001163a7ad2 GSEventRunModal +
UIKit 0x0000000112c4430d UIApplicationMain +
TTS 0x000000010f9f8f5f main +
libdyld.dylib 0x00000001150e392d start +
??? 0x0000000000000001 0x0 +
[ Fe Symbols End ]

tableview加载时,在cellForRowAtIndexPath里会报错,这是因为里面确实返回了nil的cell,一定要相信程序给你的反馈

                self.dataArray = [NSMutableArray arrayWithArray:award_array];
[self.dataArray insertObject:[NSNull null] atIndex:];
if (self.recommendAppDic)
[self.dataArray insertObject:self.recommendAppDic atIndex:];
self.dataArray = [NSMutableArray arrayWithArray:award_array];
if (self.recommendAppDic)
[self.dataArray insertObject:self.recommendAppDic atIndex:];
[self.dataArray insertObject:[NSNull null] atIndex:];

看看上面两块代码有什么区别.

看看上面

最新文章

  1. 【NLP】十分钟快览自然语言处理学习总结
  2. centos7的网络设置
  3. CentOS7 虚拟机搭建、初始设置、简单使用
  4. Oracle11g字符集AL32UTF8修改为ZHS16GBK详解【转】
  5. [JSP]获取时间
  6. 一台独立的服务器是可以可以建立多个网站的,一个ip地址,一个端口
  7. sql基本增删改查语法
  8. 私有云android客户端2.1.2最新版本(ownCloud简体中文优化版)
  9. POJ1089 Intervals
  10. UpdatePanel中执行js
  11. 怎样在Android开发中FPS游戏实现的两种方式比较
  12. const与static的区别
  13. Oracle数据库设计小细节
  14. 阿里云服务器windows系统C盘一键清理脚本
  15. TestLink使用
  16. 织梦DedeCMS提示信息框的修改,修改ShowMsg方法函数
  17. netsh禁用启用本地连接
  18. mencached
  19. Java使用google开源工具Thumbnailator实现图片压缩
  20. [POJ3416]Crossing

热门文章

  1. CSS大美集
  2. fonts.useso.com 访问变慢
  3. nodejs 转发websocket (websocket proxy)
  4. .net 读取Excel文件报错
  5. C#_基础
  6. ubuntu 13.04 telnet 详细配置
  7. POJ 题目3280 Cheapest Palindrome(区间DP)
  8. C#导入Excel遇到数字字母混合列数据丢失解决
  9. 《Linux内核分析》实验一
  10. How can I protect derived classes from breaking when I change the internal parts of the base class?