What is the meaning of the “no index path for table cell being reused” message in iOS 6/7?

前端 未结 14 2311
一整个雨季
一整个雨季 2020-11-27 15:12

Since starting to compile my app with iOS 6 (and since also iOS 7) I\'ve started seeing this message. I know that the way that UITableViews go about managing cells is diffe

14条回答
  •  盖世英雄少女心
    2020-11-27 15:55

    Yet another condition...

    This happened when, not wanting a header, I returned nil.

    Fix:

    func tableView(tableView: UITableView,
                   titleForHeaderInSection section: Int) -> String? {
        return ""
    }
    

提交回复
热议问题