title: NSArray count not working
body: <p>So I have a <code>UITableView</code>, and I populate the tableview with data from a <code>.plist</code>.  This has been working fine for me until today, when I tried to do the same and I can't get the <code>numberOfRowsInSection</code>, method to work. Here is my code:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
       if...
  
       else if (segmentOptions == exchange){
           NSArray *array = [NSArray arrayWithArray:[exchangeDictionary objectForKey:[listOfExchanges objectAtIndex:section]]];
           return [array count];
       }   
  
     //Else
      return contentArray.count;
  }
  </code></pre>
  
  <p>So in that code, everytime I run it, the code crashs.  But, I use basiacally the same code to set the tableview text and that works fine:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
       static NSString *CellIdentifier = @"Cell";
  
       UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
           cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
       }
  
       if...
  
       else if (segmentOptions == exchange) {
             NSArray *array = [NSArray arrayWithArray:[exchangeDictionary objectForKey:[listOfExchanges objectAtIndex:indexPath.section]]];
             cell.textLabel.text =  [array objectAtIndex:indexPath.row];
       }
  
       return cell;
  }
  </code></pre>
  
  <p>And that code works fine, which is why I'm so confused.  When I set the number of rows to return to a specific number, and run the rest of the code, everything works fine.  So I'm really lost.  Thands in advance</p>
  
  <p><strong>UPDATE</strong>
  I tried it with the proper <code>count</code> notation, <code>return [array count];</code>, and I still get the same crash and the same console output.</p>