title: Other view is not loading in iPhone app
body: <p>I am using below code in implementation file. The issue is when I click on a row it does not take me to another view?</p>
  
  <p>please help</p>
  
  <pre><code>-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
  
  return 1;
  }
  
  -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
  return 3;
  }
  
  -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  static NSString *CellIdentifier = @"Cell";
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
  if (cell == nil) {
  
      cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
  
  }
  
  cell.textLabel.text = [NSString  stringWithFormat:@"Vehicle List %d", [indexPath row]+1];
  
  return cell;
  }
  
  -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  if (self.vehic == nil) {
      Vehicle *vehicle = [[Vehicle alloc] initWithNibName:@"Vehicle" bundle:[NSBundle mainBundle]];
  
      self.vehic = vehicle;
  }
  
  [self.navigationController pushViewController:self.vehic animated:YES];
  }
  </code></pre>