我是 iPhone 新手。我有一个小小的疑问是我创建了一个项目,当我点击它时我放置了一个按钮,它打开UIWebView
了UIView
我想要一个带有后退按钮的导航栏。为此,我编写了一些代码,但是在这里我无法创建后退按钮。如果有人知道这一点,请帮助我......我为此编写的以下代码
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;
}