(
56435614315645164,
{
data = (
{
"created_time" = "2014-01-20T16:40:22+0000";
id = "277617849058209";
message = "abcdefght";
},
}
}
我在iOS中有这个数组(在索引0处)。如何将此数组拆分为字符串?结果应如下所示:
string 1=56435614315645164;
string2={
data = (
{
"created_time" = "2014-01-20T16:40:22+0000";
id = "277617849058209";
message = "abcdefght";
},
}
我想将字符串2拆分为:
ssting1=data=
sstring2=created time=
sstring3=id=
sstring4=message=
答案 0 :(得分:1)
据我所知,如果您使用的是JSON,则需要反序列化 获得以下教程
How to deserialize json object and assign to a NSDictionary in iOS http://www.raywenderlich.com/5492/working-with-json-in-ios-5
如果您不使用JSON,只需使用字典存储这些值并根据需要进行操作