1
這是Web服務的json響應,在UITableViewCell中顯示json響應?
ChangedOptions = ( { Descriptions = ( "some text" ); Invoice = 0; MSRP = 0; OptionCode = "some text"; OptionGroup = "some text"; OptionSection = Packages; State = Selected; }, { Descriptions = ( "some text" ); Invoice = 50; MSRP = 50; OptionCode = "some text"; OptionGroup = "some text"; OptionSection = Packages; State = Unselected; }, { Descriptions = ( "some text" ); Invoice = 0; MSRP = 0; OptionCode = 28F; OptionGroup = "some text"; OptionSection = Packages; State = Required; }, { Descriptions = ( "some text" ); Invoice = 0; MSRP = 0; OptionCode = 27F; OptionGroup = "CPOS PKG"; OptionSection =PowerTrain; State = Excluded; },
}
我想用OptionSection
前也獲取特定的數組索引:在此響應我要顯示Description,Invoice,MSRP,OptionCode,OptionGroup即對應於「Packages」如果OptionSection =「Packages」不止一個計數,我必須在UITableView中顯示所有這些東西
請給出任何建議
我也有一個項目在github上使用JSON來填充tableview:https://github.com/Jensen2k/SpillesNaa – Jensen2k 2011-03-03 11:15:44