2011-06-24 15:57:30 +00:00
|
|
|
#import "SkUINavigationController.h"
|
|
|
|
|
|
|
|
@implementation SkUINavigationController
|
|
|
|
@synthesize fRoot, fDetail;
|
|
|
|
|
2011-07-17 14:42:08 +00:00
|
|
|
- (void)viewDidLoad {
|
|
|
|
[super viewDidLoad];
|
2011-06-24 15:57:30 +00:00
|
|
|
[fDetail populateRoot:fRoot];
|
2011-07-17 14:42:08 +00:00
|
|
|
[self pushViewController:fDetail animated:NO];
|
2011-06-24 15:57:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
|
|
|
|
return YES; //Allow auto rotation for all orientations
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)dealloc {
|
|
|
|
[fRoot release];
|
|
|
|
[fDetail release];
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2011-07-17 14:42:08 +00:00
|
|
|
//Table View Delegate Methods
|
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
|
[fDetail goToItem:indexPath.row];
|
|
|
|
[self pushViewController:fDetail animated:YES];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|