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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -