myPrimaryinfo = [[NSMutableArray arrayWithCapacity:6]retain];
NSArray *keys = [NSArray arrayWithObjects:@"Date","Time","Address","City"," State","Zipcode",nil];
[myPrimaryinfo addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:
[NSString stringWithFormat:@"%@",txtDate.text],
[NSString stringWithFormat:@"%@",txtTime.text],
[NSString stringWithFormat:@"%@",txtAddress.text],
[NSString stringWithFormat:@"%@",txtCity.text],
[NSString stringWithFormat:@"%@",txtState.text],
[NSString stringWithFormat:@"%@",txtZip.text],nil]forKeys:keys]];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDire ctory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"myPrimaryinfo.pli st"];
[myPrimaryinfo writeToFile

ath atomically:YES];
NSLog(@"PrimaryInfo array: %@", myPrimaryinfo);
Quote:
Originally Posted by amir.helzer
We need a tutorial, aimed for iPhone developers, that will explain how to work with plists in the application.
It should cover:
1) What plists are normally used for.
2) How to generate them to include texts, images, HTML and other resources.
3) How to include different plists per language, so that the correct one is chosen.
You can get back to me here about technical details. Quotes, please send me privately to our contact page.
|