0
我是iPhone新手。我有一个小小的怀疑,那就是我创建了一个项目,当我点击一个按钮时,它会打开UIWebView
那个UIView
我想要一个带有后退按钮的导航栏,这是可能的。为此,我写了一些代码,但在这里我不能够创建回button.If任何身体知道这个请大家帮我... 下面的代码我已经为这个如何在导航栏上放置后退按钮
BiblePlayerViewController.m
- (IBAction)aboutUsButtonClicked:(id)sender {
UIWebView *aboutUsWebView = [[UIWebView alloc]initWithFrame:CGRectMake(0,44, 320, 460)];
[self.view addSubview:aboutUsWebView];
[aboutUsWebView setOpaque:NO];
aboutUsWebView.backgroundColor = [UIColor whiteColor];
aboutUsWebView.delegate = self;
[aboutUsWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.ayansys.com/"]]];
biblePlayerController = [[BiblePlayerViewController alloc]initWithNibName:@"BiblePlayerViewController" bundle:nil];
navigationController = [[UINavigationController alloc]init];
navigationController.view.frame = CGRectMake(0, 0, 320, 44);
[self.view addSubview:navigationController.view];
self.navigationController.navigationBar.tintColor=[UIColor orangeColor];
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:self action:@selector(GotoBiblePlayerViewController)];
self.navigationItem.leftBarButtonItem = backButton;
}
的可能的复制http://stackoverflow.com/questions/2846539/adding-back-button-to-navigation-bar – Meet