Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *path = [[NSBundle mainBundle] pathForResource:@"content_iPhone" ofType:@"plist"];
- NSMutableArray *plist = [[NSMutableArray arrayWithContentsOfFile:path] mutableCopy];
- // For testing purpose, get an object from the Array and add the object to array
- newObject = [plist objectAtIndex:1];
- [plist addObject:newObject];
- [plist writeToFile:path atomically:YES];
- NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
Add Comment
Please, Sign In to add comment