'-[__NSDictionaryI length]: unrecognized selector sent to instance' - trying to figure out why

前端 未结 4 1533
别跟我提以往
别跟我提以往 2021-01-13 08:08

I\'ve a UITableView with custom UILabel for title and one another to subtitle, in order to align the text to right.

My data come from web s

4条回答
  •  一个人的身影
    2021-01-13 08:49

    You are setting the cell's text property to a dictionary:

    cell.textLabel.text = dict[@"Title"];
    

    From your log of dict:

    Title =     {
        };
    

    and:

    detailTextLabel.text = dict[@"Text"];
    

    From your log of dict:

    Text =     {
        };
    

    It's not clear exactly what values should be used from dict, but it should not be those dictionaries.

提交回复
热议问题