title: Advice on creating table with dynamic data in IOS
body: <p>I am trying to create a table with dynamic data and I'm kind of stuck. Here is how my data is structured :</p>
  
  <pre><code>NSMutableArray *bigArray;
  </code></pre>
  
  <p><code>bigArray</code> has many <code>NSDictionary</code> items.</p>
  
  <p>each <code>items</code> has only one entry.</p>
  
  <p><code>sectionName</code> is the key, NSMutableArray is the value.</p>
  
  <p>There are many objects in the <code>value</code> NSMutableArray.</p>
  
  <p>I tried to explain this as simple as I could, here is the part where I'm stuck.</p>
  
  <pre><code>//easy
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
      return [bigArray count];
  }
  
  //medium
      - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {    
      // Return the number of rows in the section.
      return [[[[bigArray objectAtIndex:section] allValues] objectAtIndex:0] count];
  }
  </code></pre>
  
  <p>I can't figure out this part how to implement this method based on my current data structure :</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
     UITableViewCell *cell = [tableView 
                               dequeueReusableCellWithIdentifier:@"MyCell"];
  
      MyObject *obj = //Need this part
  
  
      cell.textLabel.text = obj.name;   
  
      return cell;
  
  }
  </code></pre>
  
  <p>Simply put, I'm trying to insert dynamic sections with dynamic data. I'm looking for advice from more experienced developers, how would you tackle this?</p>