Assertion failure in UITableView configureCellForDisplay:forIndexPath:

前端 未结 6 1867
春和景丽
春和景丽 2020-12-13 17:03

I\'m not sure where the error is here, having looked at other similar issues. I received an Assertion failure.

Terminating app due to uncaught exception \'N         


        
6条回答
  •  鱼传尺愫
    2020-12-13 17:59

    In the below code you have written @"cell" (written with a small c), but you have to use @"Cell" (C must be capital).

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
    {
        UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
    

提交回复
热议问题