JSON As Dictionary { headers = ( { backGroundImageUrl = ""; dataField = Name; headerText = Name; id = Name; itemRenderer = ""; toolTip = ""; width = 60; }, { backGroundImageUrl = ""; dataField = BidPrice; headerText = Bid; id = BidPrice; itemRenderer = ""; toolTip = "Bid Price"; width = 30; }); values = ( { assetCellValueLst = { AskColorCode = "#B8D1ED"; AskPrice = "102.20"; BidColorCode = "#B8D1ED"; BidPrice = "102.00"; Name = "AR Bonar 11"; PECSAsk = 569; PECSChg = "(31)"; PECSChgColorCode = "#000000"; PriceChg = "0.00"; PriceChgColorCode = "#000000"; SOLAsk = 604; SSPAsk = 677; SSPChgDay = "+3"; SSPChgDayColorCode = "#000000"; YTMAsk = "6.97"; assetGroupName = Argentina; assetId = ARBONAR11; iconPath = "images/flag_Argentina.gif"; updated = false; }; assetId = ARBONAR11; }, { assetCellValueLst = { AskColorCode = "#53840f"; AskPrice = "84.00"; BidColorCode = "#53840f"; BidPrice = "83.75"; Name = "AR Bod 15"; PECSAsk = 945; PECSChg = 14; PECSChgColorCode = "#000000"; PriceChg = "-0.10"; PriceChgColorCode = "#53840F"; SOLAsk = 985; SSPAsk = 1007; SSPChgDay = "+7"; SSPChgDayColorCode = "#000000"; YTMAsk = "11.74"; assetGroupName = Argentina; assetId = ARBON15; iconPath = "images/flag_Argentina.gif"; updated = false; }; assetId = ARBON15; });
爲清晰起見,上面的JSON有更多的標題和值縮短。 assestCellValueLst Dictionary可以具有更多或更少的鍵值對,具體取決於業務邏輯。標題字典也是如此。我應該如何在Xcode中創建對象模型以將其與Core Data Managed Objects結合使用?對於非持久性商店或根本沒有商店如何設計對象圖形/模型?
非常感謝你 – user400579 2010-07-25 20:04:35