Friday, November 6, 2026
HomeiOS Developmentios - cannot discover indexpath in scop in tableview

ios – cannot discover indexpath in scop in tableview

[ad_1]

import UIKit

non-public let reuseableIdentifier = “cell”

class TableViewController: UITableViewController{

override func viewDidLoad() {
    tremendous.viewDidLoad()
     
  tableView.register(UITableViewCell.self,forCellReuseIdentifier: reuseableIdentifier)
}
override func numberOfSections(in tableView: UITableView) -> Int {
    // #warning Incomplete implementation, return the variety of sections
    return 0
}

override func tableView(_ tableView: UITableView, numberOfRowsInSection part: Int) -> Int {
    let cell =  tableView.dequeueReusableCell(withIdentifier: reuseableIdentifier, for: indexPath ) 
    return cell
}

}

so that is my code however on the dequereuseableCell for: indexPath it displaying error like can’not discover indexPath in scop

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments