user2296494
user2296494

Reputation: 141

How to show address bar in UIWebView

I have a UIWebView Here is the code:

- (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.
}

When it shows up I want the address bar to show up, like it does when I open the Safari app. I thought it was this line of code NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; but i guess not.

Upvotes: 2

Views: 4825

Answers (1)

SAE
SAE

Reputation: 1739

The 'address bar' is not part of an UIWebView - you'll have to implement it separately. See here or here for examples.

Upvotes: 7

Related Questions