-
Create an NSArray containing your two NSMutableArrays.
NSArray *array = [NSArray arrayWithObjects:<#(id), ...#>, nil];
-
Write the array to a file.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *libraryDirectory = [paths objectAtIndex:0]; NSString *location = [libraryDirectory stringByAppendingString:@"/somefilename.plist"]; [array writeToFile:location atomically:YES];
-
Load the array from the file.
NSString *path = [bundle pathForResource:@"file" ofType:@"plist"]; NSArry *array = (path != nil ? [NSArray arrayWithContentsOfFile:location] : nil);