我有这样的服务器数据流
BACA.RG,BACA,RG,121,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BACA.TN,BACA,TN,121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAEK.NG,BAEK,NG,2200,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAEK.RG,BAEK,RG,1900,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAEK.TN,BAEK,TN,1900,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAJA.NG,BAJA,NG,435,0,0,0,0,0,0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAJA.RG,BAJA,RG,500,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,SQ
BAJA.TN,BAJA,TN,500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,SQ
那是带有纯字符串的数据,所以我想将此数据插入到 nsdictionary... 所以结果将是这样的:
{
id : "BACA.RG",
name: "BACA",
//和其余的 } 但经过 3 个小时的工作,仍然无法将其与 nsdictionary 分开,这里需要专家 :) 谢谢