title: Creating Section Titles in a Table View Controller with date attribute in Core Data
body: <p>I have a substantially working app at the moment and I'm currently going through a learning process of enhancing this. I have a TableViewController which when prompted, asks a user to input some information and when the user clicks save, that information is displayed appropriately in the table view. </p>
  
  <p>I would like to ask the user to add one more bit of information and that will make up the section. This will be the date. Think of Instragram; before each picture, you have a date, etc. I want to achieve something like that where the entered date makes up the section headers and then displays them in chronological order. </p>
  
  <p>I'm still learning so I'm really stuck on how to achieve this. I already have one array (called transactions) which is responsible for currently displaying everything in the table view. </p>
  
  <p>Do I need to create another array to hold the entered dates?</p>
  
  <p>How would I implement these methods:</p>
  
  <pre><code>sectionIndexTitlesForTableView
  
  tableView:titleForHeaderInSection
  </code></pre>
  
  <p>I've not done any implementing of sections before and it's throwing me off. </p>
  
  <p>The Transaction Entity has relationships to a few other entities and occasion is one of them. In the TableCell, I'm successfully displaying the result of transaction.occasion which is calling the Occasion entity and displaying it's name, etc. That Occasion entity also has a dateOfEvent attribute and basically, I want the section titles to display the dateOfEvents with the corresponding rows representing events in that date. </p>
  
  <p>Any help would be much appreciated!</p>
  
  <p>p.s. I'm not using an NSFetchedResultsController at the moment; I know it's easier but I want to learn this way first..</p>