如何将此数组填充到uitableviewcell。我曾尝试过下面这个,但没有成功。向utiableview填充数组
cell.textlabel.text = [array objectatIndex:indexpath.row];
so pls。指导更好的解决方案。
{
name = nick;
surname = xyz;
timeCreated = "2012-01-06 04:03:03 +0000";
timeUpdated = "1999-11-30 00:00:00 +0000";
userID = 1;
userno = 0;
},
{
name = samuel;
surname = xyz;
timeCreated = "2012-01-06 04:03:24 +0000";
timeUpdated = "1999-11-30 00:00:00 +0000";
userID = 2;
userno = 1;
},
{
name = John;
surname = xyz;
timeCreated = "2012-01-06 04:03:48 +0000";
timeUpdated = "1999-11-30 00:00:00 +0000";
userID = 3;
userno = 2;
}
这是一个JSON文件内容:而不是从对象(在你的例子看起来可能是JSON解析成一个NSDictionary)
例如内分配一个值? – Ilanchezhian 2012-01-06 04:45:59