Getting an error when trying to give a default cell style

1119 views swift
2

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

    let cell = UITableViewCell(style: <#T##UITableViewCell.CellStyle#>.default, reuseIdentifier: "cell")
}//Enum element 'default' cannot be referenced as an instance member//

answered question

1 Answer

5

let cell = UITableViewCell(style: .default, reuseIdentifier: "cell")

posted this

Have an answer?

JD

Please login first before posting an answer.