<?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: How To Place a UIWebView inside a UIScrollView</title>
	<atom:link href="http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/</link>
	<description>news and random thoughts from your friendly neighborhood independent developers at juggleware, llc</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:57:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andy</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-621</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-621</guid>
		<description>You don&#039;t need javascript, you can call sizeToFit on your webview, then just call bounds.size and the size will be correct.</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need javascript, you can call sizeToFit on your webview, then just call bounds.size and the size will be correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rok</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-599</link>
		<dc:creator>Rok</dc:creator>
		<pubDate>Tue, 30 Aug 2011 13:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-599</guid>
		<description>Hello! Good work!

As for that 12 px that you&#039;re adding: you should use
scrollHeight instead of offsetHeight.

Regards, 

rok</description>
		<content:encoded><![CDATA[<p>Hello! Good work!</p>
<p>As for that 12 px that you&#8217;re adding: you should use<br />
scrollHeight instead of offsetHeight.</p>
<p>Regards, </p>
<p>rok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbfigueira</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-590</link>
		<dc:creator>rbfigueira</dc:creator>
		<pubDate>Fri, 19 Aug 2011 12:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-590</guid>
		<description>Hi,

Can you please provide any sample code UIWebView inside a UIScrollView ?
Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you please provide any sample code UIWebView inside a UIScrollView ?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ピエールランリ・ラヴィン</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-568</link>
		<dc:creator>ピエールランリ・ラヴィン</dc:creator>
		<pubDate>Fri, 10 Jun 2011 06:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-568</guid>
		<description>Nice nice nice, having the same case right now. Haven&#039;t found any good solution for now about the scroll issues but what you wrote helpt me a lot :-) Thanks you~ !</description>
		<content:encoded><![CDATA[<p>Nice nice nice, having the same case right now. Haven&#8217;t found any good solution for now about the scroll issues but what you wrote helpt me a lot <img src='http://www.juggleware.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Thanks you~ !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-262</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 14 Oct 2010 15:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-262</guid>
		<description>That’s great, thank you!</description>
		<content:encoded><![CDATA[<p>That’s great, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy K</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-259</link>
		<dc:creator>Andy K</dc:creator>
		<pubDate>Sun, 12 Sep 2010 18:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-259</guid>
		<description>Excellent, this has helped me a lot

Cheers</description>
		<content:encoded><![CDATA[<p>Excellent, this has helped me a lot</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-256</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 24 Aug 2010 01:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-256</guid>
		<description>Very useful. Thanks for sharing how to do that.
Worked great.</description>
		<content:encoded><![CDATA[<p>Very useful. Thanks for sharing how to do that.<br />
Worked great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How To Place a UIWebView inside a UIScrollView &#171; The Official Blog of Web X.0 Media</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-225</link>
		<dc:creator>How To Place a UIWebView inside a UIScrollView &#171; The Official Blog of Web X.0 Media</dc:creator>
		<pubDate>Thu, 22 Jul 2010 17:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-225</guid>
		<description>[...] in iPhone Dev Assistance    http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/     &#171; Making Image Bounce Around [...]</description>
		<content:encoded><![CDATA[<p>[...] in iPhone Dev Assistance    <a href="http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/" rel="nofollow">http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/</a>     &laquo; Making Image Bounce Around [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alec</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-211</link>
		<dc:creator>alec</dc:creator>
		<pubDate>Tue, 13 Jul 2010 02:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-211</guid>
		<description>Ooh, here&#039;s an even better way I found than setting &lt;code&gt;userContentEnabled = NO&lt;/code&gt; that lets you keep the interaction enabled if you want hyperlinks to work:

&lt;code&gt;[[[bioWebView subviews] lastObject] setScrollEnabled:NO];&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Ooh, here&#8217;s an even better way I found than setting <code>userContentEnabled = NO</code> that lets you keep the interaction enabled if you want hyperlinks to work:</p>
<p><code>[[[bioWebView subviews] lastObject] setScrollEnabled:NO];</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alec</title>
		<link>http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/comment-page-1/#comment-204</link>
		<dc:creator>alec</dc:creator>
		<pubDate>Fri, 09 Jul 2010 17:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.juggleware.com/blog/?p=247#comment-204</guid>
		<description>Also, I almost forgot to add: but web views scroll as well as scroll views, so you will have to come up with a technique to disable scrolling on the UIWebView so that only the UIScrollView responds to touches. After trying many of the suggestions I found on the web to no avail, I discovered that by setting userContentEnabled to NO on the web view solved my problem. Here&#039;s the part of my view controller&#039;s &lt;code&gt;viewDidLoad:&lt;/code&gt; method where I stuff the content HTML with javascript into the web view, then turn off scrolling. NOTE: this will probably disable any links you have in the HTML but since I am only using this to format content, this works great for my purposes.

&lt;code&gt;
	NSString *html = [NSString stringWithFormat: @&quot;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div id=&#039;body&#039;&gt;%@&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&quot;,[entity objectForKey: @&quot;bio&quot;]];
	[bioWebView loadHTMLString:html baseURL:nil];
	bioWebView.userInteractionEnabled = NO;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Also, I almost forgot to add: but web views scroll as well as scroll views, so you will have to come up with a technique to disable scrolling on the UIWebView so that only the UIScrollView responds to touches. After trying many of the suggestions I found on the web to no avail, I discovered that by setting userContentEnabled to NO on the web view solved my problem. Here&#8217;s the part of my view controller&#8217;s <code>viewDidLoad:</code> method where I stuff the content HTML with javascript into the web view, then turn off scrolling. NOTE: this will probably disable any links you have in the HTML but since I am only using this to format content, this works great for my purposes.</p>
<p><code><br />
	NSString *html = [NSString stringWithFormat: @"&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div id='body'&gt;%@&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;",[entity objectForKey: @"bio"]];<br />
	[bioWebView loadHTMLString:html baseURL:nil];<br />
	bioWebView.userInteractionEnabled = NO;<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

