I have an array that contains movie objects. These objects are stored in a movie array. My movie object is below.
Movie.h
NSString * name;
NSString * cat_name;
I want to add my original array to a UITableView
with dynamic rows and sections but I'm finding it difficult. I think the best way to do this is by having an array of arrays.
For example, there would be an array that contains all horror movies, an array that contains all fiction etc. All in one array. I think that would allow me to get the desired end product. I'm finding it difficult code it though.
EDIT The content of the array is dynamic, so I will not know how many objects will be in it at launch (it's being parsed from JSON). So I need to dynamically create the right amount of sections etc.
movieDict = @{@"horror:horrorMoviesArray, @"fiction":fictionMoviesArray};
– Anoop Vaidya Dec 8 '14 at 10:59