이 토론에서 제안한 코드를 구현하려고합니다.선언되지 않은 식별자 "customTableViewCell"의 사용
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = customTableView.dequeueReusableCell(withIdentifier: "customCell1","customCell2","customCell3","customCell4","customCell5") as! customTableViewCell
if dataFeed.count > 0{
cell.poatLabel.text = dataFeed[indexPath.row].postData
}
return cell
}
그것은 "선언되지 않은 식별자 'customTableViewCell'의 사용은" 내가이 문제를 해결하려면 어떻게 .. 말한다 : [
Retrieve only 5 users at a time :Firebase [like Instagram] 불행하게도 나는 내가 해결할 수없는 것으로, 다음과 같은 오류는 무엇입니까? 셀을 어딘가에 선언합니까?
감사합니다. 감사, 레오
이 경우'customTableViewCell' 클래스가 정의되어 감사합니다 ... 더 길 아래에 오류로 실행 할 수 있음? –
어디에도 없습니다. 어떻게 정의하겠습니까? ""let customTableViewCell = cell '' ''? – Leo
그리고 나는 당신이'deque'에서 하나 이상의 셀을 가져갈 수 없다고 생각합니다. 'CustomTableViewCell : UITableViewCell' 클래스를 정의하지 않았습니다. –