이 배열을 uitableviewcell에 채우려면 어떻게해야합니까? 나는 이것을 시도했지만 성공하지는 않았다.배열을 utiableview에 채우기
cell.textlabel.text = [array objectatIndex:indexpath.row];
그래서 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