Guest User

Untitled

a guest
Jan 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. NSString *path = [[NSBundle mainBundle] pathForResource:@"content_iPhone" ofType:@"plist"];
  2. NSMutableArray *plist = [[NSMutableArray arrayWithContentsOfFile:path] mutableCopy];
  3.  
  4. // For testing purpose, get an object from the Array and add the object to array
  5. newObject = [plist objectAtIndex:1];
  6. [plist addObject:newObject];
  7.  
  8. [plist writeToFile:path atomically:YES];
  9.  
  10. NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
Add Comment
Please, Sign In to add comment