Wednesday, July 1, 2026
HomeiOS DevelopmentError: This property is outlined however not out there on this context

Error: This property is outlined however not out there on this context

[ad_1]

I’ve created a file with the fields of the Sqlite database however I can’t entry the properties from the tableView

DataTableWord.swift

    class DataTableWord{
    
    var idWord: Int = 0
    var phrase: String = ""
    var options: String = ""
    var quantity: Int = 0
    
    init(idWord: Int, phrase: String, options: String, quantity: Int) {
        self.idWord = idWord
        self.phrase = phrase
        self.options = options
        self.quantity = quantity
    }

}

ViewController.swift

import UIKit

class ViewController: UIViewController, UITextViewDelegate, UITableViewDataSource {

var dataTableWord: [DataTableWord] = []

func tableView(_ tableView: UITableView, numberOfRowsInSection part: Int) -> Int {
        return dataTableWord.depend
    }

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

let cell = tableView.dequeueReusableCell(withIdentifier: "idCell1Main1", for: indexPath) as! TableViewCell

cell.cellLabelNumber.textual content = dataTableWord.[indexPath.row].idWord

return cell
    }


}

Why this error message?

enter picture description right here

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments