Using UIWebview with basic authentication ( authentication works ) however I am not getting images downloaded ? can anyone point me in the right direction ?
I am connecting with this :
connection = [[NSURLConnection alloc] initWithRequest:sourceUrl
delegate:self
startImmediately:YES];
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
NSLog(@"%s", __FUNCTION__);
[webData appendData:data];
}
-(void)connectionDidFinishLoading:(NSURLConnection *)connection{
NSLog(@"%s", __FUNCTION__);
[_webView loadData:webData
MIMEType: @"text/html"
textEncodingName: @"UTF-8"
baseURL:nil];
I get the web page fine but several images do not load.
If you are using relative paths you should set the base URL.