<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: UIWebView &#8211; Loading External Images and CSS</title>
	<atom:link href="http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited</link>
	<description>Tips and Tricks for iPhone, iPod, iPad and iOS Developers</description>
	<lastBuildDate>Sun, 18 Jul 2010 17:17:16 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ashish</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-2981</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Thu, 06 May 2010 12:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-2981</guid>
		<description>this works very well and fast but it does not load images if I give baseurl instead of nil. It takes few seconds to load. 

	NSURL *myUrl = [[NSURL alloc] initFileURLWithPath:self.contentPath];
	//NSLog(@&quot;Content url is %@&quot;,myUrl);
	
	
	NSString *string = [[NSString alloc]initWithContentsOfFile:self.contentPath encoding:NSASCIIStringEncoding error:nil];
	[contentDisplay loadHTMLString:string baseURL:nil];  //here nil if replaced by myUrl webView takes time to load. Any help ?
	[string release];
	[myUrl release];</description>
		<content:encoded><![CDATA[<p>this works very well and fast but it does not load images if I give baseurl instead of nil. It takes few seconds to load. </p>
<p>	NSURL *myUrl = [[NSURL alloc] initFileURLWithPath:self.contentPath];<br />
	//NSLog(@&#8221;Content url is %@&#8221;,myUrl);</p>
<p>	NSString *string = [[NSString alloc]initWithContentsOfFile:self.contentPath encoding:NSASCIIStringEncoding error:nil];<br />
	[contentDisplay loadHTMLString:string baseURL:nil];  //here nil if replaced by myUrl webView takes time to load. Any help ?<br />
	[string release];<br />
	[myUrl release];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I.Iordanov</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-2461</link>
		<dc:creator>I.Iordanov</dc:creator>
		<pubDate>Tue, 16 Mar 2010 12:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-2461</guid>
		<description>Hi All. If you are still interested in this topic I prepare an example in my blog and pointed the links to the blogs I used to build a page with local resources using UIWebView. 
http://mentormate.com/blog/iphone-uiwebview-class-local-css-javascript-resources/
I hope this will save your time. I wm will be happy if you share your opinion on my blog.</description>
		<content:encoded><![CDATA[<p>Hi All. If you are still interested in this topic I prepare an example in my blog and pointed the links to the blogs I used to build a page with local resources using UIWebView.<br />
<a href="http://mentormate.com/blog/iphone-uiwebview-class-local-css-javascript-resources/" rel="nofollow">http://mentormate.com/blog/iphone-uiwebview-class-local-css-javascript-resources/</a><br />
I hope this will save your time. I wm will be happy if you share your opinion on my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1969</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1969</guid>
		<description>@pramod: There seems to be a lot of confusion surrounding UIWebView and caching on the iPhone. I have not done any testing myself so unfortunately I cannot add any clarity. But this &lt;a href=&quot;http://stackoverflow.com/questions/1246420/need-content-in-uiwebview-to-display-quickly&quot; rel=&quot;nofollow&quot;&gt;Stack Overflow&lt;/a&gt; entry seems to have the best overview of the situation.</description>
		<content:encoded><![CDATA[<p>@pramod: There seems to be a lot of confusion surrounding UIWebView and caching on the iPhone. I have not done any testing myself so unfortunately I cannot add any clarity. But this <a href="http://stackoverflow.com/questions/1246420/need-content-in-uiwebview-to-display-quickly" rel="nofollow">Stack Overflow</a> entry seems to have the best overview of the situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pramod</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1963</link>
		<dc:creator>pramod</dc:creator>
		<pubDate>Mon, 01 Feb 2010 06:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1963</guid>
		<description>Does UIWebView cache the images loaded using img src tag. if so where do it cache in the iPhone and what is the time it keeps its content into its cache.</description>
		<content:encoded><![CDATA[<p>Does UIWebView cache the images loaded using img src tag. if so where do it cache in the iPhone and what is the time it keeps its content into its cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1249</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Mon, 05 Oct 2009 14:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1249</guid>
		<description>Thanks! This is exactly what I need!</description>
		<content:encoded><![CDATA[<p>Thanks! This is exactly what I need!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1108</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 08 Sep 2009 17:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1108</guid>
		<description>Just found what appears to be a good workaround for loading CSS!

http://dblog.com.au/iphone-development/loading-local-files-into-uiwebview/</description>
		<content:encoded><![CDATA[<p>Just found what appears to be a good workaround for loading CSS!</p>
<p><a href="http://dblog.com.au/iphone-development/loading-local-files-into-uiwebview/" rel="nofollow">http://dblog.com.au/iphone-development/loading-local-files-into-uiwebview/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1107</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 08 Sep 2009 17:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1107</guid>
		<description>@Joe: Interesting, I was not aware of this change. Let me do some more thinking and see what else I can come up with.</description>
		<content:encoded><![CDATA[<p>@Joe: Interesting, I was not aware of this change. Let me do some more thinking and see what else I can come up with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1106</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 08 Sep 2009 16:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1106</guid>
		<description>@Nick: No can do. Relative URLs do not work per the 3.0 SDK Release Notes (when using loadHTMLString:baseURL:). I even tried the Data variant. No dice. :(</description>
		<content:encoded><![CDATA[<p>@Nick: No can do. Relative URLs do not work per the 3.0 SDK Release Notes (when using loadHTMLString:baseURL:). I even tried the Data variant. No dice. <img src='http://iPhoneIncubator.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1098</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 06 Sep 2009 05:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1098</guid>
		<description>@Dan: You can refer to images on your web page by an absolute URL, and images in your bundle by a relative URL (the image name).</description>
		<content:encoded><![CDATA[<p>@Dan: You can refer to images on your web page by an absolute URL, and images in your bundle by a relative URL (the image name).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/uiwebview-revisited/comment-page-1#comment-1095</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 04 Sep 2009 19:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=80#comment-1095</guid>
		<description>But wait a sec - that IS what I&#039;m doing. baseURL _is_ using a file scheme. Ugh. :(</description>
		<content:encoded><![CDATA[<p>But wait a sec &#8211; that IS what I&#8217;m doing. baseURL _is_ using a file scheme. Ugh. <img src='http://iPhoneIncubator.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
