問題:
'Invalid section header height (nan) provided by table delegate. Value must be at least 0.0, or UITableViewAutomaticDimension.'
原因:
出現(xiàn)這個bug崩潰,導致產生的原因:
1.heightForRowAtIndexPath 的行高有設置了負數(shù)
2.heightForHeaderInSection 頭部高度設置了負數(shù)
3.heightForFooterInSection 尾部告訴設置了負數(shù)
解決:
1.檢查上面三個方法中是否有設置了負數(shù),
2.設置為至少為0以上的整數(shù)或UITableViewAutomaticDimension