[UITableViewCell nameLabel]: unrecognized selector sent to instance

后端 未结 2 1103
长情又很酷
长情又很酷 2021-01-15 01:36

I was wondering whether anyone knew how to solve this problem?

*** Terminating app due to uncaught exception \'NSInvalidArgumentException\', reason: \

2条回答
  •  北海茫月
    2021-01-15 02:21

    You're casting the cell you get to a FolderCellTableViewCell but in fact the cell you receive from [foldertableView dequeueReusableCellWithIdentifier:foldersIdentifier]; is a UITableViewCell not a FolderCellTableViewCell. Make sure your storyboard table view cell is of class FolderCellTableViewCell.

提交回复
热议问题