-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance 0x8943940 while parsing JSON Page to UITableView

后端 未结 4 430
广开言路
广开言路 2021-01-24 14:43

I have been through many links and fortunately I got many similar links but nothing worked Out.

my array is appearing like this in Output, using NSLog()..



        
4条回答
  •  攒了一身酷
    2021-01-24 15:01

    news is a NSDictionary, and a dictionary does not have a method objectAtIndex:
    You have to use instead [news objectForKey:...];

提交回复
热议问题