Loading table sections when using headers
- by Luis Tovar
I cant seem to wrap my head around this. I have googled, and overstacked for hours now looking for examples that i can relate to. What I have is two arrays.
The name of my first NSMutableArray is "showDates".
I have 3 objects in here.
Object 0: "Today, May 20th"
Object 1: "Tomorrow, May 21st"
Object 2: "Saturday, May 22nd"
Then I have my second NSMutableArray named "showTimes"
I have about 15 objects in there with strings in each object. ( i hope that makes sense? )
Each object is structured like this:
Object 0:
showID @"98022"
eventID @"833"
showTime @"1:30pm"
showDate @"Today, May 20th"
auditorium @"9"
venue @"2991"
Object 1:
showID @"98222"
eventID @"813"
showTime @"2:30pm"
showDate @"Tomorrow, May 21st"
auditorium @"9"
venue @"2991"
Etc, etc, ....
I have the headers working great in my tableView, but I cant seem to figure out how to add the objects in my "showTimes" array under the correct header. Any help would be greatly appreciated.