blob: b430560ba7e02bfa909f99d773ecd9a54448d650 [file] [log] [blame]
yangsu@google.com2eff7e22011-06-24 15:57:30 +00001#import "SkUINavigationController.h"
2
3@implementation SkUINavigationController
4@synthesize fRoot, fDetail;
5
yangsu@google.comc5aeccd2011-07-17 14:42:08 +00006- (void)viewDidLoad {
7 [super viewDidLoad];
yangsu@google.com2eff7e22011-06-24 15:57:30 +00008 [fDetail populateRoot:fRoot];
yangsu@google.comc5aeccd2011-07-17 14:42:08 +00009 [self pushViewController:fDetail animated:NO];
yangsu@google.com2eff7e22011-06-24 15:57:30 +000010}
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
yangsu@google.comc5aeccd2011-07-17 14:42:08 +000022//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