- (void)viewDidLoad {
[super viewDidLoad];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
[self setTitle:@"Main"];
UIImageView *barView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 48)];
[barView setImage:[UIImage imageNamed:@"navBar.png"]];
[self.navigationController.navigationBar insertSubview:barView atIndex:0];
[barView release];
UIBarButtonItem *leftItem=[[UIBarButtonItem alloc] initWithTitle:@"按键" style:UIBarButtonItemStylePlain target:nil action:nil];
self.navigationItem.leftBarButtonItem=leftItem;
[leftItem release];
}
[super viewDidLoad];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
[self setTitle:@"Main"];
UIImageView *barView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 48)];
[barView setImage:[UIImage imageNamed:@"navBar.png"]];
[self.navigationController.navigationBar insertSubview:barView atIndex:0];
[barView release];
UIBarButtonItem *leftItem=[[UIBarButtonItem alloc] initWithTitle:@"按键" style:UIBarButtonItemStylePlain target:nil action:nil];
self.navigationItem.leftBarButtonItem=leftItem;
[leftItem release];
}