title: How to store an array with custom objects in plist file and again load it on application launch
body: <p>I have an array with custom objects,which I want to store it in plist file,so I have tried this code so far to save the array</p>
  
  <pre><code>NSMutableData *data = [[NSMutableData alloc] init];
      NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
  
      [archiver encodeObject: myArray  forKey:@"ArrayKey"];
  
      [archiver finishEncoding];
  
      NSString *docsDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES) objectAtIndex:0];    
  
      // get the path to our Data/plist file
      NSString *plistPath = [docsDir stringByAppendingPathComponent:@"Data.plist"];
  
  
  
      [data writeToFile:plistPath atomically:YES];
  
      [data release];
      [archiver release];
  </code></pre>
  
  <p>Here "myarray" is my custom array ,now I am able to store the array but I want to know how can I load the array from the plist file</p>
  
  <p>Thanks and Regards
  Ranjit</p>