title: Objective-C array issues
body: <p>I have this NSArray and each item returns a POIndex and PONumber and I am putting each item of the array inside another Array and the other array is returning like this:</p>
  
  <pre><code>POIndex
  PONumber
  POIndex
  PONumber
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>- (void)GetRequest
  {
  
      NSArray *tableData = [dataSource.areaData GetPurchaseOrderItems:[NSString stringWithFormat:@"%@%@",areaPickerSelectionString,unitPickerSelectionString]];
  
      if(!self.objects){
          self.objects = [[NSMutableArray alloc]init];
      }
  
      for(int i = 0; i &lt; [tableData count]; i++){
          [self.objects addObjectsFromArray:[tableData objectAtIndex:i]];
      }
  
      [self.tableView reloadData];
  
  }
  </code></pre>
  
  <p>Here is a screenshot of what tableData is returning:</p>
  
  <p><img src="https://i.stack.imgur.com/EEwBk.png" alt="enter image description here"></p>
  
  <p>What I am looking to do is have have the PONumber as the key and POIndex as the display value, how would I do this?</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>NSMutableDictionary *subDict=[[NSMutableDictionary alloc]init];
      for (NSDictionary *dict in tableData) {
          [subDict setValue:[dict objectForKey:@"POIndex"] forKey:[dict objectForKey:@"PONumber"]];
          [self.objects addObject:subDict];
      }
  </code></pre>
  
  <p>but this displays like so:</p>
  
  <pre><code>{
  {
  {
  {
  </code></pre>
  
  <p>Here is what is displaying it:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
  
      NSString *object = self.objects[indexPath.row];
      cell.textLabel.text = [object description];
      return cell;
  }
  </code></pre>