Re: webFrame loadHTMLString and images
Re: webFrame loadHTMLString and images
- Subject: Re: webFrame loadHTMLString and images
- From: Dustin Wenz <email@hidden>
- Date: Fri, 2 Mar 2007 14:05:39 -0600
On Mar 2, 2007, at 1:40 PM, Greg Hoover wrote:
I'm using a webView to show some scraped data. I first retrieve
the data using [NSURL resourceDataUsingCache:], convert the data to
an NSString and then add it to the webFrame using loadHTMLString.
The problem is that none of the images are being retrieved/
displayed. The IMG URLs are absolute and I've verified they exist
by copying the same URL into a browser. Is there more to this
process?
Are you providing the correct baseURL? If you are generating a file
url using the NSURL methods, fileURLWithPath requires a valid path in
order to work (unlike URLWithString, which will accept anything as
long as it's in the expected format).
- .Dustin
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden