我有一个 UIWebView 这是代码:
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *fullURL = @"https://facebook.com";
NSURL *url = [NSURL URLWithString:fullURL];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[_Facebook loadRequest:requestObj];
// Do any additional setup after loading the view.
}
当它出现时,我希望显示地址栏,就像我打开 Safari 应用程序时一样。我以为是这行代码 NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; 但我想不是。