title: iOS / Xcode 4: View won't load
body: <p>This is really frustrating as I've tinkered with previous versions of Xcode and have done this before but playing around with a new app now, it's not working for some reason.</p>
  
  <p>I have the app open to a UITableView and want it to load to a detail UIView once I select a cell. However, when I choose a cell in the iPhone simulator, it just highlights the cell blue and doesn't load the view.</p>
  
  <p>Here is the code I'm using the the RootViewController:</p>
  
  <pre><code>-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  WorkoutViewController *workoutViewController;
  workoutViewController = [[WorkoutViewController alloc] initWithNibName:@"WorkoutViewController" bundle:nil];
  workoutViewController.workoutName = [workouts objectAtIndex:indexPath.row];
  [self.navigationController pushViewController:workoutViewController animated:YES];
  [workoutViewController release];
  workoutViewController = nil;
  </code></pre>
  
  <p>I have the view linked to the File Owner in the WorkoutViewController.xib file. When I put in a breakpoint at @implementation WorkoutViewController, it does get to that breakpoint but it goes to the @synthesize line and then jumps right back out to [self.navigationController ...etc]; and never returns back to the WorkoutViewController.m file.</p>