objective-c - iOS crash bug
巴扎黑
巴扎黑 2017-04-18 09:43:26
0
4
571

出现一个bug,遍历一个model,之前的遍历都正常,

到了某一个

,模型是正确的,这些方法也能使用,
以下是崩溃的地方,内容太多不知道要传哪部门有帮助。

巴扎黑
巴扎黑

reply all(4)
大家讲道理

When assigning a value to the key of the Model, convert it to the corresponding type

阿神

Please print the console when it crashes. Also, can you check whether _loveIconModel.image is of type NSString? Set a breakpoint during execution to confirm. Maybe you are paying other types to the String type

小葫芦

It seems that the problem caused by yymodel in the second-layer model has not been solved yet,

迷茫

From the second picture, it is obvious that the object of the model is not iconlovemodel. The get methods of the image and name attributes corresponding to iconlovemodel cannot be found. You can just print iconlovemodel and see.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template