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") :

enter image description here


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -