<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codec &#187; loadView</title>
	<atom:link href="http://www.trembl.org/codec/tag/loadview/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trembl.org/codec</link>
	<description>A Personal Polylogic Code/Decode &#039;Zettelkasten&#039;</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>loadView vs. viewDidLoad</title>
		<link>http://www.trembl.org/codec/61/</link>
		<comments>http://www.trembl.org/codec/61/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 04:25:32 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[loadView]]></category>
		<category><![CDATA[self.view]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[viewDidLoad]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=61</guid>
		<description><![CDATA[viewDidLoad only if the view is unarchived from a nib, method is invoked after view is set. loadView only invoked when the view proberty is nil. use when creating views programmatically. default: create a UIView object with no subviews. - &#40;void&#41;loadView &#123; UIView *view = &#91;&#91;UIView alloc&#93; initWithFrame:&#91;UIScreen mainScreen&#93;.applicationFrame&#93;; &#91;view setBackgroundColor:_color&#93;; self.view = view; &#91;view [...]]]></description>
			<content:encoded><![CDATA[<p><code>viewDidLoad</code> only if the view is unarchived from a nib, method is invoked after view is set.</p>
<p><code>loadView</code> only invoked when the <code>view</code> proberty is <code>nil</code>. use when creating views programmatically. default: create a UIView object with no subviews.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadView <span style="color: #002200;">&#123;</span> 
    UIView <span style="color: #002200;">*</span>view <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIView alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIScreen 
mainScreen<span style="color: #002200;">&#93;</span>.applicationFrame<span style="color: #002200;">&#93;</span>; 
    <span style="color: #002200;">&#91;</span>view setBackgroundColor<span style="color: #002200;">:</span>_color<span style="color: #002200;">&#93;</span>; 
    self.view <span style="color: #002200;">=</span> view; 
    <span style="color: #002200;">&#91;</span>view release<span style="color: #002200;">&#93;</span>; 
<span style="color: #002200;">&#125;</span></pre></div></div>

<blockquote><p>By implementing the loadView method, <strong>you hook into the default memory management behavior</strong>. If memory is low, a view controller may receive the <code>didReceiveMemoryWarning</code> message. The default implementation checks to see if the view is in use. If its view is not in the view hierarchy and the view controller implements the loadView method, its view is released. Later when the view is needed, the loadView method is invoked<br />
again to create the view. </p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/61/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

