<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Handling Your Initial View Controllers for iPhone</title>
	<atom:link href="http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/?utm_campaign=feed&#038;utm_medium=feed&#038;utm_source=blog&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
	<description>Life, Logged Through Light</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:35:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Luc Juggery</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-612</link>
		<dc:creator>Luc Juggery</dc:creator>
		<pubDate>Sun, 05 Feb 2012 20:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-612</guid>
		<description>Hello again,

I think I figured it out, I had a bad UIWindow / MainViewController as I though. But do not hesitate to tell if you see something strange in the gist :)

Cheers,
Luc</description>
		<content:encoded><![CDATA[<p>Hello again,</p>
<p>I think I figured it out, I had a bad UIWindow / MainViewController as I though. But do not hesitate to tell if you see something strange in the gist <img src='http://www.mikeziray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Luc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Juggery</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-611</link>
		<dc:creator>Luc Juggery</dc:creator>
		<pubDate>Sun, 05 Feb 2012 09:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-611</guid>
		<description>Thanks Mike, that clarifies things.

In my current iOS app project, I am doing the switch of views (login / tabbar) in the app&#039;s delegate, I know that is not clean and that really bugs me :)
Reading your article I started changing this to use a MainViewController object because your approach is really clean (thanks).

I have a problem though as I do not see my views anymore (black screen) when is app is ran, there is a link I probably missed somewhere :)

I do not have any MainWindow.xib file so I&#039;ve done the linking programmatically (pretty user this is this part causing problem).  I&#039;ve written the main stuff in this gist: https://gist.github.com/1744267

Would you have any idea of what is missing ? 
Thanks a lot for your help.

Luc</description>
		<content:encoded><![CDATA[<p>Thanks Mike, that clarifies things.</p>
<p>In my current iOS app project, I am doing the switch of views (login / tabbar) in the app&#8217;s delegate, I know that is not clean and that really bugs me <img src='http://www.mikeziray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Reading your article I started changing this to use a MainViewController object because your approach is really clean (thanks).</p>
<p>I have a problem though as I do not see my views anymore (black screen) when is app is ran, there is a link I probably missed somewhere <img src='http://www.mikeziray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I do not have any MainWindow.xib file so I&#8217;ve done the linking programmatically (pretty user this is this part causing problem).  I&#8217;ve written the main stuff in this gist: <a href="https://gist.github.com/1744267" rel="nofollow">https://gist.github.com/1744267</a></p>
<p>Would you have any idea of what is missing ?<br />
Thanks a lot for your help.</p>
<p>Luc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-610</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 03 Feb 2012 18:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-610</guid>
		<description>A sign up view is just another view on the stack of other views. For usability reasons, I would include it as a subview or subcontroller of the login view. This is because it&#039;s likely a new user would not be logged in, thus shown the login view. The login view would then have a link to a signup view. The login view would thus be responsible for login and signup. I would probably break this out into a UserAccountController that will handle communication with the server to handle login/authentication, signup and any other account tasks you need to handle. Under the UserAccountController you could have your ViewControllers to handle display and control of the appropriate views (Login, Signup, Edit Account).

I hope that made sense. Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>A sign up view is just another view on the stack of other views. For usability reasons, I would include it as a subview or subcontroller of the login view. This is because it&#8217;s likely a new user would not be logged in, thus shown the login view. The login view would then have a link to a signup view. The login view would thus be responsible for login and signup. I would probably break this out into a UserAccountController that will handle communication with the server to handle login/authentication, signup and any other account tasks you need to handle. Under the UserAccountController you could have your ViewControllers to handle display and control of the appropriate views (Login, Signup, Edit Account).</p>
<p>I hope that made sense. Thanks for the comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-609</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 03 Feb 2012 18:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-609</guid>
		<description>The Window object itself is the one and only Window in your application. The Window needs a root view to begin displaying content and maintains a pointer to its root view. The tab bar controller&#039;s view needs to be that root view to work properly, in some cases. However, your Root View Controller class can set the Window&#039;s view to any other view it has access to. So, you use your root view controller to handle what view becomes the Window&#039;s view and swap it out according to your needs.

Great question! I hope that cleared it up for you.</description>
		<content:encoded><![CDATA[<p>The Window object itself is the one and only Window in your application. The Window needs a root view to begin displaying content and maintains a pointer to its root view. The tab bar controller&#8217;s view needs to be that root view to work properly, in some cases. However, your Root View Controller class can set the Window&#8217;s view to any other view it has access to. So, you use your root view controller to handle what view becomes the Window&#8217;s view and swap it out according to your needs.</p>
<p>Great question! I hope that cleared it up for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-608</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 03 Feb 2012 18:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-608</guid>
		<description>Storyboards affect it a lot. In the method I used, I usually add my Views and ViewControllers programmatically. I actually don&#039;t do a whole lot in Interface Builder unless it&#039;s an actual and complex interface. If you want to use the new Storyboards method, you can setup your storyboard to handle the different view controllers, depending on the organization of your storyboards. However, that&#039;s up to you and you can always choose to do anything programmatically to get things up and running and then switch over or vice versa.</description>
		<content:encoded><![CDATA[<p>Storyboards affect it a lot. In the method I used, I usually add my Views and ViewControllers programmatically. I actually don&#8217;t do a whole lot in Interface Builder unless it&#8217;s an actual and complex interface. If you want to use the new Storyboards method, you can setup your storyboard to handle the different view controllers, depending on the organization of your storyboards. However, that&#8217;s up to you and you can always choose to do anything programmatically to get things up and running and then switch over or vice versa.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc Juggery</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-607</link>
		<dc:creator>Luc Juggery</dc:creator>
		<pubDate>Fri, 03 Feb 2012 08:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-607</guid>
		<description>Hello Mike,
just another question.. if you were to add a signup view, how would you add them in the picture ?
Thanks again,
Luc</description>
		<content:encoded><![CDATA[<p>Hello Mike,<br />
just another question.. if you were to add a signup view, how would you add them in the picture ?<br />
Thanks again,<br />
Luc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-605</link>
		<dc:creator>Luc</dc:creator>
		<pubDate>Thu, 02 Feb 2012 14:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-605</guid>
		<description>thanks for this great tutorial. I managed to have the loginView / tabBArcontroller switch in my apps but I was sure I did not do it in a right way. Stacking the views makes things a lot clearer.

One thing I&#039;m still not confortable with is the rootViewController object, I do not really understand when you said (talking about the tabBarcontroller) &quot;It needs to be the root view of your window, but that doesn’t mean it needs to be the root view controller.&quot;. Would do you mean ?

thanks, that&#039;s great stuff,
Luc</description>
		<content:encoded><![CDATA[<p>thanks for this great tutorial. I managed to have the loginView / tabBArcontroller switch in my apps but I was sure I did not do it in a right way. Stacking the views makes things a lot clearer.</p>
<p>One thing I&#8217;m still not confortable with is the rootViewController object, I do not really understand when you said (talking about the tabBarcontroller) &#8220;It needs to be the root view of your window, but that doesn’t mean it needs to be the root view controller.&#8221;. Would do you mean ?</p>
<p>thanks, that&#8217;s great stuff,<br />
Luc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LM</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-604</link>
		<dc:creator>LM</dc:creator>
		<pubDate>Wed, 01 Feb 2012 08:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-604</guid>
		<description>how do storyboards affect this</description>
		<content:encoded><![CDATA[<p>how do storyboards affect this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-466</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 23 May 2011 15:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-466</guid>
		<description>Thanks for the comment. The likely reason you&#039;re seeing the tab bar is because the app hasn&#039;t fully quit. With the new iOS 4, multi-tasking is standard and the app might appear to be quitting, but you need to explicitly quit in order to see the login again.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment. The likely reason you&#8217;re seeing the tab bar is because the app hasn&#8217;t fully quit. With the new iOS 4, multi-tasking is standard and the app might appear to be quitting, but you need to explicitly quit in order to see the login again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boju</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-465</link>
		<dc:creator>Boju</dc:creator>
		<pubDate>Sat, 21 May 2011 17:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-465</guid>
		<description>Hello Mike

Thanks for the wonderful tutorial. After lots of search. I ended up in yours and it makes sense your way of programming. I have been off IT for sometime and just getting back with iPhone. Got get rid of my passion. Two things. I downloaded your sample code and figured it out, how it works. I see it little bit different from your description above. However I figured out how i works. 

One part, I am not able to figure out is. After login, I am able to show my tabbar. But On relaunch, It is going back to tab bar, but I want to show the login screen again. What do I do? Any help will do.

Thanks and Good Day!
Boju</description>
		<content:encoded><![CDATA[<p>Hello Mike</p>
<p>Thanks for the wonderful tutorial. After lots of search. I ended up in yours and it makes sense your way of programming. I have been off IT for sometime and just getting back with iPhone. Got get rid of my passion. Two things. I downloaded your sample code and figured it out, how it works. I see it little bit different from your description above. However I figured out how i works. </p>
<p>One part, I am not able to figure out is. After login, I am able to show my tabbar. But On relaunch, It is going back to tab bar, but I want to show the login screen again. What do I do? Any help will do.</p>
<p>Thanks and Good Day!<br />
Boju</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iOS Development Code Kitchen</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-380</link>
		<dc:creator>iOS Development Code Kitchen</dc:creator>
		<pubDate>Mon, 06 Dec 2010 19:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-380</guid>
		<description>[...] Handling Your Initial View Controllers [...]</description>
		<content:encoded><![CDATA[<p>[...] Handling Your Initial View Controllers [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SouthernBelle</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-302</link>
		<dc:creator>SouthernBelle</dc:creator>
		<pubDate>Sun, 29 Aug 2010 02:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-302</guid>
		<description>Very nice, and helpful - this was exactly the information I have been searching for!  Thanks SO much!</description>
		<content:encoded><![CDATA[<p>Very nice, and helpful &#8211; this was exactly the information I have been searching for!  Thanks SO much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-211</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 03 Jun 2010 19:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-211</guid>
		<description>If you have a reference to the view, you can call it&#039;s removeFromSuperView method. You can put that inside another method that gets called automatically, either by a timer or by some other action. What are you stuck on specifically?</description>
		<content:encoded><![CDATA[<p>If you have a reference to the view, you can call it&#8217;s removeFromSuperView method. You can put that inside another method that gets called automatically, either by a timer or by some other action. What are you stuck on specifically?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ktkintaiwan</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-210</link>
		<dc:creator>ktkintaiwan</dc:creator>
		<pubDate>Thu, 03 Jun 2010 06:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-210</guid>
		<description>You&#039;re awesome!
thx~</description>
		<content:encoded><![CDATA[<p>You&#8217;re awesome!<br />
thx~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ktk</title>
		<link>http://www.mikeziray.com/2010/01/27/handling-your-initial-view-controllers-for-iphone/comment-page-1/#comment-209</link>
		<dc:creator>ktk</dc:creator>
		<pubDate>Thu, 03 Jun 2010 06:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikeziray.com/?p=884#comment-209</guid>
		<description>You&#039;re awesome!
thx~</description>
		<content:encoded><![CDATA[<p>You&#8217;re awesome!<br />
thx~</p>
]]></content:encoded>
	</item>
</channel>
</rss>

