Asked 7 years ago
9 Oct 2016
Views 5863
iPhone-coder

iPhone-coder posted

Editor placeholder in source file in swift with tableViewController

i get error :: "Editor placeholder in source file " with dequeueReusableCell with


 override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        
        let cell =
            
            tableView.dequeueReusableCell(withIdentifier: "MulticellTableview", for: IndexPath ) as! MulticellTableview
        
        cell.title.text=arrayofcell[indexPath.row].text
        
        return cell;
        
    }
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

you override function tableView with indexPath . but you did not pass it at dequeueReusableCell so change in code will be

jst indexPath instead of IndexPath . thats it .

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

Post Answer