iphone - ios - How to declare URL in NSURLConnection delegate? -


i'm following link http://www.stevesaxon.me/posts/2011/window-external-notify-in-ios-uiwebview/ access token,but how declare url here

- (void)connectiondidfinishloading:(nsurlconnection *)connection  {  if(_data)  {  nsstring* content = [[nsstring alloc] initwithdata:_data                                                   encoding:nsutf8stringencoding];          [_data release];         _data = nil;          // prepend html our custom javascript         content = [scriptnotify stringbyappendingstring:content];          //here how declare url         [_webview loadhtmlstring:content baseurl:_url];     } } 

any ideas? in advance.

in given example, _url member variable. declare in property list , assign in [webview:shouldstartloadwithrequest:navigationtype:] callback _url = [[request url] retain];

and love of consider holy, please indent code properly.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -