Could not cast value of type 'UITableViewCell' to '(AppName).(CustomCellName)'

前端 未结 12 1753
一生所求
一生所求 2020-12-02 23:03

I\'m currently trying to create a custom table view cell using xCode 6.3 swift 1.2. For some reason in the cellforRowAtIndexPath method, I just can\'t seem to set up my cell

12条回答
  •  心在旅途
    2020-12-02 23:08

    Firstly I suggest you to recreate your cell class, using CocoaClass. I had quite similar mistake - I created a CollectionViewCell, and when I recognised my mistake, I decided to simply rename the parent class. However, compiler haven't notice any mistake, I had this error during build.

提交回复
热议问题