Hello,
I try to put json value into List of Uilabel... without success : here is simple code test not finished...
Anyone can point me to right direction, I tried with list, dictionary...
Sorry is not problem with NGUI for sure :-)
JSONObject emptyObject
= new JSONObject
();
emptyObject.Add("ilan", 1500);
emptyObject.Add("marc", 850);
emptyObject.Add("philip", 700);
emptyObject.Add("mat", 650);
emptyObject.Add("paul", 550);
emptyObject.Add("joe", 425);
emptyObject.Add("nico", 400);
emptyObject.Add("ju", 300);
emptyObject.Add("arno", 250);
emptyObject.Add("paul", 100);
foreach (KeyValuePair<string, JSONValue> pair in emptyObject)
{
Debug.Log("name : score -> " + pair.Key + " : " + pair.Value);
foreach (UILabel namelist in lblNameList)
{
//namelist.text = pair.Key;
}
foreach (UILabel pointlist in lblPointList)
{
//pointlist.text = pair.Value.Type.ToString();
}
}
Thanks