加載tableview崩潰系列

崩潰logapp

*** Assertion failure in -[XYTableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UITableView.m:7971ui

 

function:__uncaughtExceptionHandler line:382 content:uncaught exception: UITableView (<XYTableView: 0x7fa8cc86ee00; baseClass = UITableView; frame = (0 0; 414 672); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7fa8cb6b2000>; layer = <CALayer: 0x7fa8cb69d780>; contentOffset: {0, 0}; contentSize: {414, 176}>) failed to obtain a cell from its dataSource (<SXPayCenterViewController: 0x7fa8cdc56450>)對象

前一句爲崩潰的方法(死亡地點)ip

後一句崩潰的關聯對象和地點it

問題:崩潰io

緣由:在指定的section和row 返回的cell爲nilfunction

解決方法:返回的cell數量和數據源要統一,且不能爲nilcli

相關文章
相關標籤/搜索