<?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: Changing the range of the zoom factor for UIWebView objects</title>
	<atom:link href="http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/</link>
	<description>iCab related stuff; Mac, iPhone and Cocoa programming</description>
	<lastBuildDate>Wed, 15 May 2013 09:32:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-31218</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 24 Jul 2012 12:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-31218</guid>
		<description><![CDATA[@Eric
Putting a UIWebView into a UIScrollView is highly discouraged by Apple for good reasons. While it seems to work at first glance, there will be conflicts with the gestures. 

Of course you can get the reference to the scrollview of the WebView under iOS 4 as well, but this would mean that you have to make certain assumptions about the internal view hierarchy of UIWebView (you assume that there&#039;s a UIScrollView internally), which is strictly speaking using &quot;private&quot; API. You could do this with only using the public API though, by checking all subviews of UIWebView and look for the scrollview. But because Apple has not documented the internals of UIWebView, be prepared that you might not always find want you&#039;re looking for. Use the new iOS 5 API when available to get the reference to the scrollview. This is a safe way to get access to the scroll view.]]></description>
		<content:encoded><![CDATA[<p>@Eric<br />
Putting a UIWebView into a UIScrollView is highly discouraged by Apple for good reasons. While it seems to work at first glance, there will be conflicts with the gestures. </p>
<p>Of course you can get the reference to the scrollview of the WebView under iOS 4 as well, but this would mean that you have to make certain assumptions about the internal view hierarchy of UIWebView (you assume that there&#8217;s a UIScrollView internally), which is strictly speaking using &#8220;private&#8221; API. You could do this with only using the public API though, by checking all subviews of UIWebView and look for the scrollview. But because Apple has not documented the internals of UIWebView, be prepared that you might not always find want you&#8217;re looking for. Use the new iOS 5 API when available to get the reference to the scrollview. This is a safe way to get access to the scroll view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-31187</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 24 Jul 2012 02:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-31187</guid>
		<description><![CDATA[My app is running ios4.x and higher,I have see someone have maked it true on ios 4.x.But i don&#039;t know how can do that. If the UIWebView have two scrollViews?  After contentView zoom it can move left or right and navigationBar can down or up.]]></description>
		<content:encoded><![CDATA[<p>My app is running ios4.x and higher,I have see someone have maked it true on ios 4.x.But i don&#8217;t know how can do that. If the UIWebView have two scrollViews?  After contentView zoom it can move left or right and navigationBar can down or up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-31122</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Mon, 23 Jul 2012 10:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-31122</guid>
		<description><![CDATA[@Eric
The Navigation toolbar is not sitting within the content area of the UIWebView and therefore does not zoom with the content area. In order to get a scrolling navigation toolbar like in Safari, you can get a reference to the internal UIScrollView of the UIWebView (requires iOS 5) and then use the scrollview properties and the scrollview delegate methods to move the navigation together with the content when it is scrolled. You can also set the content offset or insets for the scrollview to initially move the content down in order to make room for the navigation toolbar, so the navigation toolbar can be placed on top of the UIWebView without overlapping the content area of the UIWebView when it is scrolled to the top.
When scrolling down, the UIScrollView delegates will be called and will tell you how much the content area is scrolled. And so you know how much you need to move the navigation toolbar out of view.]]></description>
		<content:encoded><![CDATA[<p>@Eric<br />
The Navigation toolbar is not sitting within the content area of the UIWebView and therefore does not zoom with the content area. In order to get a scrolling navigation toolbar like in Safari, you can get a reference to the internal UIScrollView of the UIWebView (requires iOS 5) and then use the scrollview properties and the scrollview delegate methods to move the navigation together with the content when it is scrolled. You can also set the content offset or insets for the scrollview to initially move the content down in order to make room for the navigation toolbar, so the navigation toolbar can be placed on top of the UIWebView without overlapping the content area of the UIWebView when it is scrolled to the top.<br />
When scrolling down, the UIScrollView delegates will be called and will tell you how much the content area is scrolled. And so you know how much you need to move the navigation toolbar out of view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-31108</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 23 Jul 2012 02:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-31108</guid>
		<description><![CDATA[Hi Alexander
I have met a trouble about UIWebView ,In the mobile/safari When i zoom the contentView it became larger or smaller,but the navigationbar have no effect like this .It does not change the size  by the contentView zoom or not.  I want to use UIWebView to  do like this  I found that  when i scorlled the contentView the safari&#039;s navigationbar scolling with the contentView, and I have dumped the UIWeView&#039; hierarchy ,only one scrollView in UIWebView,I don&#039;t know how to do it. Any help will appricate.]]></description>
		<content:encoded><![CDATA[<p>Hi Alexander<br />
I have met a trouble about UIWebView ,In the mobile/safari When i zoom the contentView it became larger or smaller,but the navigationbar have no effect like this .It does not change the size  by the contentView zoom or not.  I want to use UIWebView to  do like this  I found that  when i scorlled the contentView the safari&#8217;s navigationbar scolling with the contentView, and I have dumped the UIWeView&#8217; hierarchy ,only one scrollView in UIWebView,I don&#8217;t know how to do it. Any help will appricate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-10292</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Mon, 21 Mar 2011 15:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-10292</guid>
		<description><![CDATA[@tiantian
Basically, parsing the main HTML file for other files is what you need to do. 

It is true that the iOS doesn&#039;t use a &quot;disk&quot; cache, but at least the NSURLCache object is called, which is prepared to maintain a disk cache, but just doesn&#039;t cache any files on disk.
But iCab overwrites the NSURLCache to implement its own cache which can save files on disk (this is also used for the Offline mode). So iCab usually doesn&#039;t need to download files again.]]></description>
		<content:encoded><![CDATA[<p>@tiantian<br />
Basically, parsing the main HTML file for other files is what you need to do. </p>
<p>It is true that the iOS doesn&#8217;t use a &#8220;disk&#8221; cache, but at least the NSURLCache object is called, which is prepared to maintain a disk cache, but just doesn&#8217;t cache any files on disk.<br />
But iCab overwrites the NSURLCache to implement its own cache which can save files on disk (this is also used for the Offline mode). So iCab usually doesn&#8217;t need to download files again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiantian</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-10288</link>
		<dc:creator>tiantian</dc:creator>
		<pubDate>Mon, 21 Mar 2011 14:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-10288</guid>
		<description><![CDATA[Thanks again. I&#039;ve successed save data into webarchive file. But the way I get all the data is too complicate. I parse all image and js element  in the main html document and start a NSURLConnection for each of them. Do you have a better way to get all the data from a url including image and js? BTW, I found UIWebview never cache any data automatically, did you use any cache mechanism for save page? I see the page can be immediately saved after I tab that button even I turn wifi off.]]></description>
		<content:encoded><![CDATA[<p>Thanks again. I&#8217;ve successed save data into webarchive file. But the way I get all the data is too complicate. I parse all image and js element  in the main html document and start a NSURLConnection for each of them. Do you have a better way to get all the data from a url including image and js? BTW, I found UIWebview never cache any data automatically, did you use any cache mechanism for save page? I see the page can be immediately saved after I tab that button even I turn wifi off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-9491</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 01 Mar 2011 13:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-9491</guid>
		<description><![CDATA[@tiantian
If you open an existing webarchive in the properties list editor, you&#039;ll see how this works. Basically the webarchive is a structure of NSArrays, NSDictionaries which represents the page structure with all its files. And all the files data is stored as NSData objects. So you just need to store the raw data you&#039;ve got from the NSURLResponses together with the meta data (MIME type, URL) in the correct array/dictionary structure. And to save this structure as binary property list, you can use the NSPropertyListSerialization class.]]></description>
		<content:encoded><![CDATA[<p>@tiantian<br />
If you open an existing webarchive in the properties list editor, you&#8217;ll see how this works. Basically the webarchive is a structure of NSArrays, NSDictionaries which represents the page structure with all its files. And all the files data is stored as NSData objects. So you just need to store the raw data you&#8217;ve got from the NSURLResponses together with the meta data (MIME type, URL) in the correct array/dictionary structure. And to save this structure as binary property list, you can use the NSPropertyListSerialization class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiantian</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-9475</link>
		<dc:creator>tiantian</dc:creator>
		<pubDate>Tue, 01 Mar 2011 02:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-9475</guid>
		<description><![CDATA[Thanks a lot for your replay, but how to get the binary property list of a web page? I can get all the data response from a url, but the data&#039;s format is not a binary property list type . Is there a way to convent that data to a binary property list type?]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot for your replay, but how to get the binary property list of a web page? I can get all the data response from a url, but the data&#8217;s format is not a binary property list type . Is there a way to convent that data to a binary property list type?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-9215</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Mon, 21 Feb 2011 13:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-9215</guid>
		<description><![CDATA[@tiantian
Technically the webarchive file format is equal to the standard binary property list file format. So the webarchives can be created using the standard NSPropertyListSerialization class.]]></description>
		<content:encoded><![CDATA[<p>@tiantian<br />
Technically the webarchive file format is equal to the standard binary property list file format. So the webarchives can be created using the standard NSPropertyListSerialization class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiantian</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-9196</link>
		<dc:creator>tiantian</dc:creator>
		<pubDate>Mon, 21 Feb 2011 03:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-9196</guid>
		<description><![CDATA[Sorry for asking here, because I don&#039;t know your e-mail. It&#039;s about the web page saving feature. I wander how you save page as webarchive file? It seems Webarchive is a class in Mac os API, not in IOS . Did you use private API to do that?]]></description>
		<content:encoded><![CDATA[<p>Sorry for asking here, because I don&#8217;t know your e-mail. It&#8217;s about the web page saving feature. I wander how you save page as webarchive file? It seems Webarchive is a class in Mac os API, not in IOS . Did you use private API to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: denizen</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-8630</link>
		<dc:creator>denizen</dc:creator>
		<pubDate>Fri, 04 Feb 2011 22:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-8630</guid>
		<description><![CDATA[Thanks.
The problem is, I&#039;m surpassing the memory limit &lt;i&gt;before&lt;/i&gt; iOS frees the cache, so the app&#039;s being killed due to memory usage. I&#039;m testing on a relatively low-RAM device (iPod Touch 2G, running iOS4), so it might just be an issue with iOS. I&#039;ll try to get ahold of a bigger device and see if the problem persists.]]></description>
		<content:encoded><![CDATA[<p>Thanks.<br />
The problem is, I&#8217;m surpassing the memory limit <i>before</i> iOS frees the cache, so the app&#8217;s being killed due to memory usage. I&#8217;m testing on a relatively low-RAM device (iPod Touch 2G, running iOS4), so it might just be an issue with iOS. I&#8217;ll try to get ahold of a bigger device and see if the problem persists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-8611</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Fri, 04 Feb 2011 12:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-8611</guid>
		<description><![CDATA[@denizen
You can&#039;t do anything here. The iOS seems to use a shared cache for all UIWebView objects of an App and therefore when you release one UIWebView object, this hasn&#039;t much impact on the memory usage because of this shared caches. But the iOS should nevertheless release (parts of) the cache when your App can&#039;t free enough memory otherwise.]]></description>
		<content:encoded><![CDATA[<p>@denizen<br />
You can&#8217;t do anything here. The iOS seems to use a shared cache for all UIWebView objects of an App and therefore when you release one UIWebView object, this hasn&#8217;t much impact on the memory usage because of this shared caches. But the iOS should nevertheless release (parts of) the cache when your App can&#8217;t free enough memory otherwise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: denizen</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-8603</link>
		<dc:creator>denizen</dc:creator>
		<pubDate>Fri, 04 Feb 2011 06:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-8603</guid>
		<description><![CDATA[Great post. I&#039;m writing a little iOS browser as a side project, and I need a little advice. (this probably isn&#039;t the right area of the site to ask it, but I couldn&#039;t find your email) 
Anyway, I&#039;m implementing multiple tabs, each comprising one UIWebView. When I receive a memory warning, I release all non-foreground tabs. Problem is, even when I&#039;ve released them, quite a bit of memory stays behind. I&#039;ve verified they&#039;re being released in instruments, and I regain a bit of memory, but not nearly all of it. What can I do about this? I&#039;m thinking this is an issue with a cache not being released; Instruments says the leftover memory is CFData that the webview created internally. What can I do about this? Os there something I can do to manually flush the cache?]]></description>
		<content:encoded><![CDATA[<p>Great post. I&#8217;m writing a little iOS browser as a side project, and I need a little advice. (this probably isn&#8217;t the right area of the site to ask it, but I couldn&#8217;t find your email)<br />
Anyway, I&#8217;m implementing multiple tabs, each comprising one UIWebView. When I receive a memory warning, I release all non-foreground tabs. Problem is, even when I&#8217;ve released them, quite a bit of memory stays behind. I&#8217;ve verified they&#8217;re being released in instruments, and I regain a bit of memory, but not nearly all of it. What can I do about this? I&#8217;m thinking this is an issue with a cache not being released; Instruments says the leftover memory is CFData that the webview created internally. What can I do about this? Os there something I can do to manually flush the cache?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.icab.de/blog/2010/12/27/changing-the-range-of-the-zoom-factor-for-uiwebview-objects/comment-page-1/#comment-7175</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 27 Dec 2010 22:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=184#comment-7175</guid>
		<description><![CDATA[Useful information, well explained. Thank you!]]></description>
		<content:encoded><![CDATA[<p>Useful information, well explained. Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
