iOS 5 Storyboard Custom Cell Crash: UITableView dataSource must return a cell

后端 未结 5 2290
广开言路
广开言路 2020-12-19 12:08

This is either an XCode bug, or me missing a crucial rule here.

Update: - What\'s the chance of this being a weird bug in XCode/Storyboard?

5条回答
  •  清歌不尽
    2020-12-19 13:01

    To solve this problem add the following just above your dequeueReusableCellWithIdentifier statement:

    static NSString *CellIdentifier = @"NewCell";
    

    making sure the identifier matches the prototype cell in Storyboard

提交回复
热议问题