产生的崩溃:

崩溃的原因:
该tableView有多种情况, 故当罗列出所有情况后,return nil, 因为dequeueReusableCellWithIdentifier方法永远不会返回nil, 在滑动产生重用时就会产生崩溃.
解决办法:
return cell时 可以"return [[UITableViewCell alloc] init]"
产生的崩溃:
崩溃的原因:
该tableView有多种情况, 故当罗列出所有情况后,return nil, 因为dequeueReusableCellWithIdentifier方法永远不会返回nil, 在滑动产生重用时就会产生崩溃.
解决办法:
return cell时 可以"return [[UITableViewCell alloc] init]"
本文标题:iOS开发---滑动cell时崩溃解决办法
本文链接:https://www.haomeiwen.com/subject/wocjgxtx.html
网友评论