title: How to save an array of strings into a PFObject for iOS
body: <p>I want to create (or update) a PFObject with an array of strings, so that each element of the array can be editable. For example, I want the array to contain the words "Hello" and "World" so that if I wanted, I could access and rewrite the first element of the array to instead say "Goodbye".</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>PFObject *newStringArray = [PFObject objectWithClassName:@"myFirstClass"];
  [newStringArray setObject:@"Hello" forKey:@"arrayOfStrings"];
  [newStringArray saveInBackground];
  </code></pre>
  
  <p>The above code doesn't give me any errors, and it doesn't save to Parse. I've also tried using:</p>
  
  <pre><code>[newStringArray addObjectsFromArray:@[@"Hello", @"World"] forKey:@"arrayOfStrings"];
  </code></pre>
  
  <p>But this code returns the error "Error: invalid type for key arrayOfStrings, expected string, but got array"</p>
  
  <p>Please let me know if you have any suggestions for how I can fix the array problem, or if I should be trying a different method of collecting/accessing strings within a wall of text. Thanks</p>