我得到的錯誤,當我像關於表視圖細胞indexpath.row
profileJson = dicData[@"profile"][0];
cell.userName.text = [[profileJson objectForKey:@"First_Name"] objectAtIndex:indexPath.row];
Error: [__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x7fe5915d7180
如果我寫這篇文章的語句
cell.userName.text = [profileJson objectForKey:@"First_Name"];
的最後一個值是越來越值分配到小區分配。如果count
是3,那麼輸出看起來是這樣的:
Teja公司
Teja公司
Teja公司
對於每一個細胞。
後從你的'的cellForRowAtIndexPath代碼:'方法。 –
它有很多數據,我不能在這裏發佈。 –
真的很高興在這裏看到我的名字! :P你確定這[profileJson objectForKey:@「First_Name」]返回一個數組? –