全部博文(403)
2012年(403)
分类: 系统运维
2012-04-22 20:37:58
在父viewController中如下设置:
UIBarButtonItem *backbutton = [[UIBarButtonItem alloc]init];
backbutton.title = @"返回列表";
self.navigationItem.backBarButtonItem = backbutton;
[backbutton release];
----------------------------------------------------------------
或者在界面中添加了按钮之后,重新定义按钮的方法
[self.backButton setAction:@selector(OnClick_btnBack:)];
[self.backButton setTarget:self];
-(IBAction)OnClick_btnBack:(id)sender {
[self.navigationController popViewControllerAnimated:YES];
//[self.navigationController pushViewController:self.navigationController.parentViewController animated:YES];
}