ios - Error: definition conflict with previous value -
func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell { let cell = tableview.dequeuereusablecellwithidentifier("namecell", forindexpath: indexpath) let pancakehouse = pancakehouses[indexpath.row] if let cell = cell as? faqsviewcell { cell.pancakehouse = pancakehouse } else { cell.textlabel?.text = pancakehouse.que } return cell }
i got error in function of uitableviewcontroller when run project @ time got can't understand why came or meaning.
the "definition conflicts previous value" occurred when forgot set cell identifier
make sure have set correct identifier custom cell (in case "namecell") :
Comments
Post a Comment