nsmutablearray - Objective C dynamic array creation -


I have an organization that stores general information about an event. In the unit, the event on which the event took place is stored in the event.

My view hierarchy is such that I want the user to select one year, which loads the second view requesting the month in the selected year. It eventually opens a scene with records of all the events that took place in that month and year. If the user selects and events, they can either edit or view his details. It is being implemented in a table view / navigation controller.

  i.e. 2010 - 9 9 - & gt; December 2008 November - & gt; Event 3 2007 October Event 2 Event 1 - & gt; View Detail  

As the user adds a new event, it is very likely that the months and years will change. I do not want to create an array for a month or a year, unless an event actually happens, and I think I will decide when the entry is recorded while referring to the event when that event Refers to the date and some programming logic uses it to use, however, in the right month and year array, my programming experience is giving me some degree down , And I'm struggling to come up with an implementation that will allow me to dynamically create an array of unknown numbers. How can someone explain this to me, or point me in the direction of an article / post that shows this? As I had no luck with the search, I want to know that this is also possible?

You can use NSMutableDictionary You have a big dictionary that contains

 < Code> key - & gt; Value year - & gt; Annostration month - & gt; ...  

Then when you have a new year, you can put it in NSDition, if your year is already there, you can see it and put it in the dictionary of the month Can ...


Comments