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