swift - Editor placeholder in source file error with simple UITableView -
i totally new swift , have no background experience in development. trying table view in swift keep getting error 'editor placeholder in source file.
func tableview(_ tableview: uitableview, cellforrowat indexpath: indexpath) -> uitableviewcell { let cell = tableview.dequeuereusablecell(withidentifier: "cell", for: <#t##indexpath#>) as! customcell cell.photo.image = images[indexpath.row] cell.name.text = names[indexpath.row] cell.job.text = jobs[indexpath.row] return cell }
this problem is:
for: <#t##indexpath#>)
just tab variable , type in:
indexpath
Comments
Post a Comment