1 #import "SkUINavigationController.h" 2 3 @implementation SkUINavigationController 4 @synthesize fRoot, fDetail; 5 6 - (void)viewDidLoad { 7 [super viewDidLoad]; 8 [fDetail populateRoot:fRoot]; 9 [self pushViewController:fDetail animated:NO]; 10 } 11 12 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 13 return YES; //Allow auto rotation for all orientations 14 } 15 16 - (void)dealloc { 17 [fRoot release]; 18 [fDetail release]; 19 [super dealloc]; 20 } 21 22 //Table View Delegate Methods 23 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 24 [fDetail goToItem:indexPath.row]; 25 [self pushViewController:fDetail animated:YES]; 26 } 27 28 @end