0

I have a bunch of NSStrings like this....

{
     "score" = 15;
     "serial" = 8;
}

What is the best way to extract the values out of this string using "id" and "score"?

Max
  • 121
  • 1
  • 3

1 Answers1

0

These are property lists in text format. See this answer for how to parse them. You'll get a NSDictionary from which you can pull the values as NSNumbers.

Community
  • 1
  • 1
zneak
  • 134,922
  • 42
  • 253
  • 328