plist in Xcode creation

后端 未结 4 654
天涯浪人
天涯浪人 2020-12-11 23:46

When I am creating a simple application for plist shown in below link:

http://iosdevelopertips.com/data-file-management/reading-a-plist-into-an-nsarray.html

4条回答
  •  旧时难觅i
    2020-12-11 23:57

    I think you could try something like this:

        NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
        NSMutableArray *array = [dict objectForKey:@"Root"];
    
        // Show the string values  
        for (NSString *str in array)
        {
            NSLog(@"--%@", str);
        }
    

    If that helped, please, drop a line. :)

    Cheers, Kamil

提交回复
热议问题