我有一个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];但我猜不是。