 <ul> <li><p>(void)doneAceSpadeSetupClick:(id)sender {</p> <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *string1; NSString *string2; NSString *string3; NSString *path = [documentsDirectory stringByAppendingPathComponent:@"card1.plist"]; NSMutableArray *myArrayToSave = [[NSMutableArray alloc] initWithCapacity: 1]; //48 since you said in the comments that you have 48 of these NSDictionary *myDict = [[NSDictionary alloc] initWithObjectsAndKeys: string1, characterText.text, //I'm assuming your strings are in a C array. string2, actionText.text,// up to you to replace these with the right string3, objectText.text, nil]; //iPhone simulator crashed at this line [myArrayToSave addObject:myDict]; if (![myDict writeToFile:path atomically:YES]) NSLog(@"not successful in saving the unfinished game"); [self dismissModalViewControllerAnimated: YES]; </code></pre> <p>}</p></li> </ul>