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

后端 未结 4 434
广开言路
广开言路 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 14:59

    Put NSDictionary in Array then use it in Table method

     NSMutableArray *result=[[NSMutableArray alloc] init];
      result = [googleResponse valueForKey: @"products"];
    
    
     - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    NSMutableDictionary *dt = [result objectAtIndex:indexPath.row];
    
    }  
    

    It will Help you !!!!!

提交回复
热议问题