title: UISplitViewController with story board
body: <p>i am using story board with split view controller for iPad application.And set its initial to split view controller. I am populating the master view controller through an array. 'feature' is NSObject class where i declare method: <pre>- (feature *)initWithName:(NSString *)name iconName:(NSString *)iconName featuresofiphone:(iphoneFeatures)featuresofiphone;</pre> and returning name, iconName, featuresofiPhone of NSString type at its definition in .m class.
  Here is my code at didFinishLaunchingWithOptions:</p>
  
  <pre><code>NSMutableArray *monsters = [NSMutableArray array];
  [monsters  addObject:[[[feature alloc] initWithName:@"iphone3g" 
  iconName:@"iphone3g.jpg" featuresofiphone:iphone3gf] autorelease]];
  
  [monsters addObject:[[[feature alloc] initWithName:@"iphone3gs"  
  iconName:@"iphone3gs.jpg" featuresofiphone:iphone3gsf] autorelease]];
  
  [monsters addObject:[[[feature alloc] initWithName:@"iphone4g"  iconName:@"iphone4g.jpg"  
  featuresofiphone:iphone4gf] autorelease]];
  
   MasterViewController *masterDetailViewController = [[MasterViewController alloc]init];
  masterDetailViewController.iphones  = iphonesarray;
  
  UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;
  UINavigationController *navigationController = [splitViewController.viewControllers lastObject];
  splitViewController.delegate = (id)navigationController.topViewController;
  return YES;
  </code></pre>
  
  <p>but its giving exception: <pre> exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (0) beyond bounds (0) for section (0).'</pre> in master view controller at:</p>
  
  <pre><code>-(void)viewDidLoad
  {
    [super viewDidLoad];
  // Do any additional setup after loading the view, typically from a nib.
   self.detailViewController = (DetailViewController *) 
   [[self.splitViewController.viewControllers lastObject] topViewController];
   [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] 
   animated:NO scrollPosition:UITableViewScrollPositionMiddle];
  }
  </code></pre>
  
  <p>and control also not reaching to cellForRowAtIndexPath - method. help me out!!</p>