Вот пример того, что я имею в виду:
Код: Выделить всё
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// Here is where I add the code to calculate which cells should appear, though it's not important for this example
if condition {
return cell
}
}
Можно ли что-то не вернуть?
Подробнее здесь: https://stackoverflow.com/questions/554 ... itableview
Мобильная версия