How can I save Array of Class Objects in to a Plist(Iphone Development)?

First convert your NSArray to NSDictionary as given here.

First convert your NSArray to NSDictionary as given here. Then use NSDictionary's writeToFile:atomically: to store that as Plist. For this, your class must be conform to NSCoding protocol.

Or otherwise, you can write your NSArray itself directly to plist without converting to NSDictionary. But anyhow, the class should conform to NSCoding protocol.

Thanks Gomathi. Di You have any working code related to this Thanks – HCharli Oct 6 at 6:17 1 The link will help you I guess. – Aadhira Oct 6 at 8:14.

Indicate the . Plist path to the class variable correctly NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = paths objectAtIndex:0; NSString *path = documentsDirectory stringByAppendingPathComponent:@"patientList. Plist"; myPatients writeToFile:path atomically:YES; use the above I hope this wil be usefull.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions