<?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: iPhone &#8211; Downloading an image asynchronously. Revisited!</title>
	<atom:link href="http://blog.sallarp.com/asynch-uiimage-revisited/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sallarp.com/asynch-uiimage-revisited/</link>
	<description>Code, Code, Revolution!</description>
	<lastBuildDate>Sat, 17 Dec 2011 11:50:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Why aren&#8217;t UItableViewCell images loading until scrolling?</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-44526</link>
		<dc:creator>Why aren&#8217;t UItableViewCell images loading until scrolling?</dc:creator>
		<pubDate>Tue, 22 Nov 2011 03:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-44526</guid>
		<description>[...] code downloads images asynchronously using InternetImage in the tableview: cellForRowAtIndexPath: method by initializing a IntentImage with initWithURL and [...]</description>
		<content:encoded><![CDATA[<p>[...] code downloads images asynchronously using InternetImage in the tableview: cellForRowAtIndexPath: method by initializing a IntentImage with initWithURL and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawan Gera</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-28022</link>
		<dc:creator>Pawan Gera</dc:creator>
		<pubDate>Thu, 12 May 2011 10:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-28022</guid>
		<description>Hi,

I want to download zip file from the web into iphone application and the size of zip file in 1 gb. I am not able to figure the right way to do this on web. Please do the needful.

Thanks and Regards
Pawan Gera</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to download zip file from the web into iphone application and the size of zip file in 1 gb. I am not able to figure the right way to do this on web. Please do the needful.</p>
<p>Thanks and Regards<br />
Pawan Gera</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-15149</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Tue, 09 Nov 2010 23:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-15149</guid>
		<description>Thanks for posting this. It has been really helpful. 

How could I adapt the code to pull a URL stored in my db instead of hard coding one in as per your example? I am building a news app that pulls data, including image URL, from an XML feed into core data and so want to update the URL used with the relevant cell in the db. 

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. It has been really helpful. </p>
<p>How could I adapt the code to pull a URL stored in my db instead of hard coding one in as per your example? I am building a news app that pulls data, including image URL, from an XML feed into core data and so want to update the URL used with the relevant cell in the db. </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eBuildy</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-13039</link>
		<dc:creator>eBuildy</dc:creator>
		<pubDate>Wed, 25 Aug 2010 12:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-13039</guid>
		<description>You can also use the magic TTImageView component from the Three20 library (the iOS framework built by the Facebook team)...</description>
		<content:encoded><![CDATA[<p>You can also use the magic TTImageView component from the Three20 library (the iOS framework built by the Facebook team)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Fliam</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-11676</link>
		<dc:creator>Richard Fliam</dc:creator>
		<pubDate>Mon, 21 Jun 2010 05:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-11676</guid>
		<description>Old post to comment on but the leak occurs when the image reaches a retain count of zero and dealloc is called... before abortDownload or connectionDidFinishLoading: is called. This causes a general leak of downLoadedImage and m_requestData. Adding [self abortDownload]; to the dealloc method should fix this.</description>
		<content:encoded><![CDATA[<p>Old post to comment on but the leak occurs when the image reaches a retain count of zero and dealloc is called&#8230; before abortDownload or connectionDidFinishLoading: is called. This causes a general leak of downLoadedImage and m_requestData. Adding [self abortDownload]; to the dealloc method should fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coder</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-10852</link>
		<dc:creator>coder</dc:creator>
		<pubDate>Wed, 19 May 2010 09:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-10852</guid>
		<description>yes there is memory leak about InternetImage.
i just put a UIbutton in view. 
i pasted your code buttons event:
[self downloadImageFromInternet:@&quot;http://www.google.se/intl/en_com/images/logo_plain.png&quot;];
there is no memory leak when you first tap the button.
but when you tap again
there are memory leaks:
InternetImage
UIImage

i also changed your connection code:

	NSURL *url = [NSURL URLWithString:ImageUrl];
	NSURLRequest *imageRequest = [[NSURLRequest alloc] initWithURL: url];
	imageConnection = [[[NSURLConnection alloc] initWithRequest:imageRequest delegate:self] autorelease];

how can i solve it? i want to refresh the UIImage when the user taps button...
thanx...</description>
		<content:encoded><![CDATA[<p>yes there is memory leak about InternetImage.<br />
i just put a UIbutton in view.<br />
i pasted your code buttons event:<br />
[self downloadImageFromInternet:@"http://www.google.se/intl/en_com/images/logo_plain.png"];<br />
there is no memory leak when you first tap the button.<br />
but when you tap again<br />
there are memory leaks:<br />
InternetImage<br />
UIImage</p>
<p>i also changed your connection code:</p>
<p>	NSURL *url = [NSURL URLWithString:ImageUrl];<br />
	NSURLRequest *imageRequest = [[NSURLRequest alloc] initWithURL: url];<br />
	imageConnection = [[[NSURLConnection alloc] initWithRequest:imageRequest delegate:self] autorelease];</p>
<p>how can i solve it? i want to refresh the UIImage when the user taps button&#8230;<br />
thanx&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rutger Bevers</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-9192</link>
		<dc:creator>Rutger Bevers</dc:creator>
		<pubDate>Tue, 06 Apr 2010 21:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-9192</guid>
		<description>I installed the example application on my iPhone.
It works most of the times, but sometimes the image is never loaded although I have a perfect connection.

You can test this by setting the iPhone into airplane mode and then turn it of. Now immediately when you get connection to the network start the application. The image will never load...</description>
		<content:encoded><![CDATA[<p>I installed the example application on my iPhone.<br />
It works most of the times, but sometimes the image is never loaded although I have a perfect connection.</p>
<p>You can test this by setting the iPhone into airplane mode and then turn it of. Now immediately when you get connection to the network start the application. The image will never load&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NIVETHA</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-3726</link>
		<dc:creator>NIVETHA</dc:creator>
		<pubDate>Tue, 25 Aug 2009 04:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-3726</guid>
		<description>thank u</description>
		<content:encoded><![CDATA[<p>thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NIVETHA</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-3725</link>
		<dc:creator>NIVETHA</dc:creator>
		<pubDate>Tue, 25 Aug 2009 04:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-3725</guid>
		<description>Really very nice post...... it helped me very much</description>
		<content:encoded><![CDATA[<p>Really very nice post&#8230;&#8230; it helped me very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Sållarp</title>
		<link>http://blog.sallarp.com/asynch-uiimage-revisited/comment-page-1/#comment-1535</link>
		<dc:creator>Björn Sållarp</dc:creator>
		<pubDate>Sun, 24 May 2009 05:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=108#comment-1535</guid>
		<description>Hello Cedric,

1. In the demo app I allocate a single InternetImage, there is no previous instance to release.
2. Same with ImageConnection.

I suspect the memory leaks are in your own implementation.</description>
		<content:encoded><![CDATA[<p>Hello Cedric,</p>
<p>1. In the demo app I allocate a single InternetImage, there is no previous instance to release.<br />
2. Same with ImageConnection.</p>
<p>I suspect the memory leaks are in your own implementation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/16 queries in 0.012 seconds using disk
Object Caching 386/391 objects using disk

Served from: blog.sallarp.com @ 2012-02-05 04:50:58 -->
