title: Get data from a PList into UITableView?
body: <p>I want to maintain a list of records, for each one I maintain the same type of data. I want to use this data in 2 different places:</p>
  
  <ol>
  <li><code>UITableView</code> that takes from each record the "Name" value</li>
  <li><code>UIViewController</code> that takes all the data to use in different fields.</li>
  </ol>
  
  <p>I assume I should be using a plist to store the data; I also assume that the object that should be receiving the data for the <code>UITableView</code> is <code>NSArray</code> so I can use the <code>cellForRowAtIndexPath</code> method to create the table automatically.</p>
  
  <p>So i created the plist "PLForArr.plist":
  <img src="https://i.stack.imgur.com/lUBUT.png" alt="enter image description here"></p>
  
  <p>It seems that i can only get a NSDictionary when calling the plist using </p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"PLForArr" ofType:@"plist"];
  NSArray * myArr = [[NSArray alloc] initWithContentsOfFile:path]; //doesn't work...
  NSDictionary * myDict = [[NSDictionary alloc] initWithContentsOfFile:path]; //does work, but who to I make a NSArray out of it / or get the data from here to the UITableView?
  </code></pre>
  
  <p>I understand that i don't understand something basic here... Can someone take me step by step on:</p>
  
  <ol>
  <li><strong>How to keep the data</strong> - should I use plist or something else? Should I have a main record of type array (as I did on the example plist here) or can I just keep it as these Dictionaries without the unnecessary <code>MyArr</code> that I used considering the <code>UITableView</code> end target? </li>
  <li><strong>How to call the data</strong> - Is there a way to get it into a <code>NSArray</code> or must it get into a <code>NSDictionary</code>?</li>
  <li><strong>How to call it into the the UITableView</strong> - Can I fill in the lines using a <code>NSDictionary</code>?</li>
  </ol>