<?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: Dealing With Memory Warnings in View Controllers</title>
	<atom:link href="http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/</link>
	<description>Defender of Corporate Headquarters</description>
	<lastBuildDate>Fri, 09 Dec 2011 06:14:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: nevyn</title>
		<link>http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/comment-page-1/#comment-209896</link>
		<dc:creator>nevyn</dc:creator>
		<pubDate>Wed, 20 Apr 2011 15:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.fieryrobot.com/blog/?p=107#comment-209896</guid>
		<description>&lt;p&gt;Feeding Google: Since 3.0, there is - (BOOL)isViewLoaded, which is an explicit way of  finding out if the view is loaded rather than the implicit way through superview.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Feeding Google: Since 3.0, there is &#8211; (BOOL)isViewLoaded, which is an explicit way of  finding out if the view is loaded rather than the implicit way through superview.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/comment-page-1/#comment-173731</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 08 Jul 2009 05:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fieryrobot.com/blog/?p=107#comment-173731</guid>
		<description>&lt;p&gt;This technique really isn&#039;t robust either. The reason you can&#039;t test your view against nil, is that self.view (or [self view]) will recreate the view if it&#039;s nil.&lt;/p&gt;

&lt;p&gt;Calling, self.view.superview will simply do the same thing, as it calls self.view before accessing the superview property.  Even if you put the call to self.view.superview before calling [super didReceiveMemoryWarning], how do you know you won&#039;t get another memory warning later in the run?&lt;/p&gt;

&lt;p&gt;I don&#039;t know that Apple guarantees this method will only be called once.  The viewDidUnload callback in OS 3.0 helps, but I still don&#039;t know of a good way to handle this in OS &lt; 3.0.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This technique really isn&#8217;t robust either. The reason you can&#8217;t test your view against nil, is that self.view (or [self view]) will recreate the view if it&#8217;s nil.</p>

<p>Calling, self.view.superview will simply do the same thing, as it calls self.view before accessing the superview property.  Even if you put the call to self.view.superview before calling [super didReceiveMemoryWarning], how do you know you won&#8217;t get another memory warning later in the run?</p>

<p>I don&#8217;t know that Apple guarantees this method will only be called once.  The viewDidUnload callback in OS 3.0 helps, but I still don&#8217;t know of a good way to handle this in OS &lt; 3.0.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/comment-page-1/#comment-149205</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Wed, 21 Jan 2009 10:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.fieryrobot.com/blog/?p=107#comment-149205</guid>
		<description>&lt;p&gt;Hey great post. I have bookmarked it on http://www.iphonekicks.com/tipsandtricks/iPhone_SDK_Dealing_With_Memory_Warnings_in_View_Controllers&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey great post. I have bookmarked it on <a href="http://www.iphonekicks.com/tipsandtricks/iPhone_SDK_Dealing_With_Memory_Warnings_in_View_Controllers" rel="nofollow">http://www.iphonekicks.com/tipsandtricks/iPhone_SDK_Dealing_With_Memory_Warnings_in_View_Controllers</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Adam</title>
		<link>http://www.fieryrobot.com/blog/2008/10/03/dealing-with-memory-warnings-in-view-controllers/comment-page-1/#comment-131068</link>
		<dc:creator>Karl Adam</dc:creator>
		<pubDate>Thu, 09 Oct 2008 00:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.fieryrobot.com/blog/?p=107#comment-131068</guid>
		<description>&lt;p&gt;I should also point out that you need to check for the superview first before calling [super didReceiveMemoryWarning] because if you call self.view and it&#039;s already been released then you will be loading that view all over again.&lt;/p&gt;

&lt;p&gt;Also, ALL your viewControllers get this call so you do need to verify you need to tear down your custom views before doing so, otherwise you&#039;ll end up with black screens in front of users.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I should also point out that you need to check for the superview first before calling [super didReceiveMemoryWarning] because if you call self.view and it&#8217;s already been released then you will be loading that view all over again.</p>

<p>Also, ALL your viewControllers get this call so you do need to verify you need to tear down your custom views before doing so, otherwise you&#8217;ll end up with black screens in front of users.</p>]]></content:encoded>
	</item>
</channel>
</rss>

