我正在关注此链接http://www.stevesaxon.me/posts/2011/window-external-notify-in-ios-uiwebview/以获取访问令牌,但如何在此处声明 URL
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
if(_data)
{
NSString* content = [[NSString alloc] initWithData:_data
encoding:NSUTF8StringEncoding];
[_data release];
_data = nil;
// prepend the HTML with our custom JavaScript
content = [ScriptNotify stringByAppendingString:content];
//Here how to declare URL
[_webView loadHTMLString:content baseURL:_url];
}
}
有任何想法吗?提前致谢。