title: How do I load this array into Core Data Entity?
body: <p>Hi I am struggling to figure out how to loop through the array below and add each row into my core data entity</p>
  
  <p>Any help would be greatly appreciated </p>
  
  <pre><code>//CREATE AN ARRAY FROM CSV DOCUMENT USING CHCSVPARSER
  NSError *error;
  NSString *customerCSV = [[NSBundle mainBundle] pathForResource:@"CUSTOMERS" ofType:@"csv"];
  NSArray *importArray = [NSArray arrayWithContentsOfCSVFile:customerCSV encoding:NSUTF8StringEncoding error:&amp;error];
  NSLog(@"%@",importArray);
  
  //LOOP THROUGH CREATED ARRAY AND ADD OBJECTS TO COREDATA CUSTOMER ENTITY
  Invoice_MarketAppDelegate* delegate = [[UIApplication sharedApplication] delegate];
  NSManagedObjectContext* managedObjectContext = delegate.managedObjectContext;
  NSManagedObject* newCustomer;
  newCustomer = [NSEntityDescription insertNewObjectForEntityForName:@"Customers" inManagedObjectContext:managedObjectContext];
  </code></pre>
  
  <p>I don't know what to do here.</p>
  
  <pre><code>for () {
      NSLog(@"importing Row");
  
  }
  </code></pre>
  
  <p>Here is a log of the attributes I will be importing, provided at the command</p>
  
  <pre><code> NSLog(@"%@",importArray);
  </code></pre>
  
  <p>since the csv included column names</p>
  
  <pre><code>(
  
      CONTACTNAME,
      PHONE,
      COMPANYNAME,
      NOTES
  ),
  </code></pre>