我從Webservice的如何在TableviewCell中顯示Json數據?
dict : {
"Apparel & Accessories" = 2;
"Automotive Services" = 0;
"Building and Construction" = 1;
"Business & Professional Services" = 0;
"Business Services" = 0;
"Community & Education" = 0;
Education = 0;
"Entertainment & Media" = 2;
FREIGHT = 0;
"Family & Community" = 0;
Finance = 0;
"Finance & Legal" = 1;
"Food & Dining" = 3;
"Health & Medicine" = 2;
"Home & Garden" = 0;
"Home Repair & Improvement" = 0;
"Industrial supplies & services" = 0;
"Information Technology" = 1;
Legal = 0;
PELLETS = 0;
"Personal Care" = 2;
"Public utilities & environment" = 0;
"Real Estate" = 0;
"Real Estate & Insurance" = 0;
Shopping = 0;
"Shopping & Specialty Stores" = 0;
"Sports & Recreation" = 0;
"TRANSPORT SERVICES" = 0;
Transportation = 0;
Travel = 1;
"Travel & Lodging" = 0;
Uncategorized = 0;
}
得到這個數據,我必須根據以下
請告訴我該怎麼做給定的圖像在tableview中顯示此數據,我沒有想法做到這一點... 謝謝
我不是要求代碼只是想知道該怎麼做才能在鍵的前面得到這些值...... @FawadMasud,我已經得到了tableview中的所有鍵 – user6438311
我建議你買一本關於節目。 – Vincent
解析json這是有幫助的教程。 https://www.raywenderlich.com/5492/working-with-json-in-ios-5 –