Efficient method of getting all plist arrays into one array?

Posted by cannyboy on Stack Overflow See other posts from Stack Overflow or by cannyboy
Published on 2010-06-08T09:36:53Z Indexed on 2010/06/08 9:42 UTC
Read the original article Hit count: 300

Filed under:
|
|
|

If I have a plist which is structured like this:

Root              Array
   Item 0         Dictionary
     City         String     New York
     People       Array
        Item 0    String     Steve
        Item 1    String     Paul
        Item 2    String     Fabio
        Item 3    String     David
        Item 4    String     Penny
   Item 1         Dictionary
     City         String     London
     People       Array
        Item 0    String     Linda
        Item 1    String     Rachel
        Item 2    String     Jessica
        Item 3    String     Lou
   Item 2         Dictionary
     City         String     Barcelona
     People       Array
        Item 0    String     Edward
        Item 1    String     Juan
        Item 2    String     Maria

Then what is the most efficient way of getting all the names of the people into one big NSArray?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c