title: objective c when to use NSDictionary instead of NSArray
body: <p>I'm in a dilemma in terms of which of the two I should use. I will be retrieving a group of data via a restful API (returns json) and I'm not sure how I should store them before I display it on my UI View Table.</p>
  
  <p>eg.</p>
  
  <pre><code>{"Events":[{"Id":5,"Name":"Event 1 2013"},{"Id":6,"Name":"Event 2 2013"}]}
  </code></pre>
  
  <p>I've been reading tutorials and some would use NSMutableArrays while some would use NSMutableDictionary.</p>
  
  <p>How should I go about it?</p>
  
  <p><strong>BTW: I'm displaying the data on UI View table that will redirect the user to another page when tapped and if they decide to go back will have to show the previous view without reloading (uses UinavigationController)</strong></p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Also, just to give you an idea on what I'm trying to do. I'm trying to follow this tutorial on splitting the data I get into section headers. On this tutorial it's using NSDictionary. </p>
  
  <p><a href="http://www.icodeblog.com/2010/12/10/implementing-uitableview-sections-from-an-nsarray-of-nsdictionary-objects/" rel="nofollow">http://www.icodeblog.com/2010/12/10/implementing-uitableview-sections-from-an-nsarray-of-nsdictionary-objects/</a></p>
  
  <p>If I use NSArray, would that affect the performance?</p>