M
M
Maxim Trofimov2016-07-11 23:01:03
Objective-C
Maxim Trofimov, 2016-07-11 23:01:03

How to return full url of UIWebView?

I make a request through UIWebView and after loading the request, I want the full url to be returned in getTokenString , and the truncated version is returned in its place. for example: http://site.com , but I need the full one: http://site.com/krakozyabra

- (void)webViewDidFinishLoad:(UIWebView *)webViewInstantSafari
{
    NSString *getTokenString = self.webViewInstantSafari.request.URL.absoluteString;
    NSLog(@"%@", getTokenString); //печать в консоль

Maybe there are other ways to display the full url ? Why doesn't this option work as it should?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question