Value vom Typ 'UITableViewCell' hat kein Mitglied 'postImageView'

Neue iOS-Programmierung, ich erhalte die folgende Fehlermeldung, ich erhalte sie für 3 separate Elemente, aber das Lösen eines wird sie alle lösen.

Ich erhalte den folgenden Fehler

Value vom Typ 'UITableViewCell' hat kein Mitglied 'postImageView'

// return how may records in a table
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return self.rssRecordList.count
    }

    // return cell
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> NewsTableViewCell {

        // collect reusable cell
        let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)

        // find record for current cell
        let thisRecord : RssRecord  = self.rssRecordList[(indexPath as NSIndexPath).row]

        // set value for main title and detail tect
        cell.postImageView.image = UIImage(thisRecord.image)
        cell.postTitleLabel.text = thisRecord.title
        cell.authorLabel.text = thisRecord.storyDate


        // return cell
        return cell as! NewsTableViewCell
    }

Antworten auf die Frage(6)

Ihre Antwort auf die Frage