5987045388
http://codereview.appspot.com/4798055/ git-svn-id: http://skia.googlecode.com/svn/trunk@2022 2bbb7eff-a529-9590-31e7-b0007b416f81
28 lines
706 B
Plaintext
28 lines
706 B
Plaintext
#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 |