Код: Выделить всё
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! FeedCell
cell.userEmailLabel.text = userEmailArray[indexPath .row]
cell.lakeLabel.text = String(likeArray[indexPath .row])
cell.commentLabel.text = userCommentArray[indexPath .row]
cell.userImageView.sd_setImage(with: URL(string: self.userImageArray[indexPath.row]))
return cell
}
< /code>
После раздела построения Xcode запускает приложение, но в то время как приложение длительность выполнения получает ошибку ошибки для строки кода: < /p>
cell.userImageView.sd_setImage(with: URL(string: self.userImageArray[indexPath.row]))
< /code>
ошибка: < /p>
Swift/ContiguousArrayBuffer.swift:691: Fatal error: Index out of range
Подробнее здесь: https://stackoverflow.com/questions/797 ... tal-errors