title: Warning message with detailed subviews?
body: <p>Does my code look right? I'm trying to load data into my table view and detailed sub view. My table works fine, but the data wont load in my sub view</p>
  
  <p>The warning appears under this line</p>
  
  <pre><code>nextController.dataItem = [data objectAtIndex:indexPath];
  </code></pre>
  
  <p>Here is my RootViewController.m</p>
  
  <pre><code>     // Configure the data for the cell.
  
      NSDictionary *dataItem = [data objectAtIndex:indexPath.row];
      cell.icon = [UIImage imageNamed:[dataItem objectForKey:@"Icon"]];
      cell.publisher = [dataItem objectForKey:@"Publisher"];
      cell.name = [dataItem objectForKey:@"Name"];
  
  
      cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  
      return cell;
  }
  
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   NextViewController *nextController = [[NextViewController alloc] initWithNibName:@"NextView" bundle:nil];
   nextController.dataItem = [data objectAtIndex:indexPath];
   [self.navigationController pushViewController:nextController animated:YES];
   [nextController release]; 
  }
  </code></pre>
  
  <p>and my nextviewcontroller.h</p>
  
  <pre><code>    #import &lt;UIKit/UIKit.h&gt;
  
  @interface NextViewController : UIViewController
  {
   UILabel *nameLabel;
   UIImageView *iconView;
   NSDictionary *dataItem;
  }
  
  @property (nonatomic, retain) IBOutlet UILabel *nameLabel;
  @property (nonatomic, retain) IBOutlet UIImageView *iconView;
  @property (nonatomic, retain) NSDictionary *dataItem;
  
  @end
  </code></pre>
  
  <p>It loads but I get the following warning:</p>
  
  <blockquote>
    <p>"warning: passing argument 1 of 'objectAtIndex:' makes integer from pointer without a cast</p>
  </blockquote>
  
  <p>The debugger says</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (64244544) beyond bounds (50)'</p>
  </blockquote>
  
  <p>Any Ideas?</p>