Okay, I'm begging to think maybe there's a better way to do this, but I have no clue how.
Here's what I have:
An array of dictionaries (called Assignments.)
Each dictionary has 3 keys. (Name, Class, and Date.)
I would like to create a table of the assignments. It should have a section for each Class, in which all of the Assignments with that Class are put.
So, help?
Right now the process I have...
1.) Run through all the Classes and create an NSMutableDictionary for each.
2.) Run through all the Assignments and place them in the right Dictionary.
3.) Run through all the classes and remove the dictionaries for the ones without them.
That's all good and fine. I have plenty of NSLogs showing that everything was done properly.
But when I try making the table, it crashes.
Does someone else have another way of doing this? Maybe you've had to do something similar and would be willing to share the code you used?
Here's what I have:
An array of dictionaries (called Assignments.)
Each dictionary has 3 keys. (Name, Class, and Date.)
I would like to create a table of the assignments. It should have a section for each Class, in which all of the Assignments with that Class are put.
So, help?
Right now the process I have...
1.) Run through all the Classes and create an NSMutableDictionary for each.
2.) Run through all the Assignments and place them in the right Dictionary.
3.) Run through all the classes and remove the dictionaries for the ones without them.
That's all good and fine. I have plenty of NSLogs showing that everything was done properly.
But when I try making the table, it crashes.
Does someone else have another way of doing this? Maybe you've had to do something similar and would be willing to share the code you used?