この配列をuitableviewcellにどのように配置するのですか?私はこれを次のように試みましたが、成功しませんでした。配列をutiableviewに移入する
cell.textlabel.text = [array objectatIndex:indexpath.row];
です。より良い解決のためのガイド。
{
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