Утечка памяти в UITableViewCell dequeueReusableCell - PullRequest
0 голосов
/ 30 сентября 2019

Я получаю утечку памяти на dequeueReusableCell. То, что я узнаю, - один счет удержания не выпущен. Ниже приведен мой код и снимок ошибки.

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    if let cell = tableView.dequeueReusableCell(withIdentifier: String(describing: CustomCell.self)) as? CustomCell {
        return cell
    } else {
        return UITableViewCell.init()
    }
}

Привязка приборов:

enter image description here

...