title: How to create UITableView Index for large datasets
body: <p>I have gone down the rabbit hole of indexed, sectioned, tableviews and have been taken on a ride that has made me want to damage alot of valuable objects in my room... I am hoping with one last clear concise question that someone will be able to help me solve this on going struggle.</p>
  
  <p>Im going to start from the beginning so as not to confuse anyeon that offers their help, I think its easier that way and hopefully someone can post some fairly decent examples for me to read/use, as in previous questions I think I have supplied to much detail and confused everyone where the request is actually simple.. its just the implementation is drawn out and dependant on what data you have coming in and how.</p>
  
  <p>Okay here we go.</p>
  
  <p>I have a UITableView which when opened queries my database for a list of car manufactures, I parse the XML that comes in and am left with a unsorted list of car manufactures, I then pass this NSArray over to a custom method that then sortes it A-Z.</p>
  
  <pre><code>- (IBAction)startSortingTheArray:(NSMutableArray *)arrayData
  {
      //Sort incoming array alphabetically
      [self setSortedArray:[arrayData sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)]];
  </code></pre>
  
  <p>From here I would like to know how to make a Indexed UITableview for Index Scrolling of a large database..  &lt;&lt;---- <strong>This is my question</strong></p>
  
  <p>Heres what I know, From this point I need to create an array of letters that represent the letters of the alphabet thats found in my data (i.e.) first letter of each value in my sorted array. I also need to create an NSDictionary with my sorted arrays split into sections withing this dictionary.</p>
  
  <p>From there I need to update some of my UItableview delegate methods so that they can handle the NSDictionary and sections etc.. From there I need to pass the values in my NSDictionary over to my UItableviewcell labels...</p>
  
  <p>In all previous attempts I have gotten  to the point where I have everything but actually being able to display the data into the tableview cells, but because its been put together by reading several different tutorials its just not working. So I figured now that I actually kinda know what needs to happen maybe someone will be kind enough to share their code of a similar problem that I will be able to learn from and hopefully learn how to actually do this...</p>
  
  <p>I would like to thank anyone that has helped me so far and anyone who is about to help me in the future :P I will be sure to post my final solution with comments to hopefully prevent this from happening to anyone else in the future! I cannot help but feel a slight amount of hatred towards apple for this pickle of an implementation.</p>
  
  <pre><code>Honda,
      Honda,
      Honda,
      Honda,
      Honda,
      Honda,
      Honda,
      Mazda,
      Mazda,
      Mitsubishi,
      Mitsubishi,
      Mitsubishi,
      Mitsubishi,
      Mitsubishi,
      Mitsubishi,
      Nissan,
      Nissan,
      Nissan,
      Nissan,
      Nissan,
      Nissan,
      Nissan,
      Toyota,
      Toyota,
      Toyota
  </code></pre>