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

前端 未结 4 1482
别跟我提以往
别跟我提以往 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:52

    According to your log, you're try to access NSDictionary object as NSString. That's why it leads to above error.

    Problem should be here..

     NSString *imageUrl = dict[@"imageUrl"];
    

    If it's dictionary, it should be crash in this line..

    if (imageUrl.length > 0)
    

提交回复
热议问题