<?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: Simple iPhone Tutorial (Part 3)</title>
	<atom:link href="http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/feed" rel="self" type="application/rss+xml" />
	<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html</link>
	<description>A Software Technologist&#039;s Blog</description>
	<lastBuildDate>Sat, 19 May 2012 12:19:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tutorial for iPhone programming &#171; JongAm&#39;s blog</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-868</link>
		<dc:creator>Tutorial for iPhone programming &#171; JongAm&#39;s blog</dc:creator>
		<pubDate>Fri, 01 Jan 2010 05:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-868</guid>
		<description>[...] http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-2.html; http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html. [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-2.html" rel="nofollow">http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-2.html</a>; <a href="http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html" rel="nofollow">http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-830</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 24 Jun 2009 15:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-830</guid>
		<description>This was a really great tutorial - probably the best I&#039;ve read so far.  Thank you so much for taking the time to make it.  Coming from a similar background as you (.NET for 5 years), I have found the Cocoa framework and XCode to be incredibly frustrating, and moving from C# to Objective-C has seemed like such a step backwards.  Your tutorial has illuminated many things for me.  Once again, thanks!</description>
		<content:encoded><![CDATA[<p>This was a really great tutorial &#8211; probably the best I&#8217;ve read so far.  Thank you so much for taking the time to make it.  Coming from a similar background as you (.NET for 5 years), I have found the Cocoa framework and XCode to be incredibly frustrating, and moving from C# to Objective-C has seemed like such a step backwards.  Your tutorial has illuminated many things for me.  Once again, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goliad</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-786</link>
		<dc:creator>Goliad</dc:creator>
		<pubDate>Thu, 04 Jun 2009 16:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-786</guid>
		<description>That was it! Thanks for the screenshot - it helps so much for those who are new to IB.

With a good learning from this thread, I want to see if I can combine this UITabBar example with Notification method used in the UISlide example mentioned in this thread. For example, when UISlide is pull to to a predermined point (say value=50), it would switch to Second Tab automatically.</description>
		<content:encoded><![CDATA[<p>That was it! Thanks for the screenshot &#8211; it helps so much for those who are new to IB.</p>
<p>With a good learning from this thread, I want to see if I can combine this UITabBar example with Notification method used in the UISlide example mentioned in this thread. For example, when UISlide is pull to to a predermined point (say value=50), it would switch to Second Tab automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miketeo</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-784</link>
		<dc:creator>miketeo</dc:creator>
		<pubDate>Thu, 04 Jun 2009 05:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-784</guid>
		<description>@Goliad: 
It is likely that your tabBarController attribute is not initialized and point to the UITabBarController instance. You can link the attribute and the UITabBarController object in the Interface Buider (IB). Please refer to the second &quot;window&quot; in the &lt;a href=&quot;http://miketeo.net/wp/wp-content/uploads/2008/08/tabbarcontroller_test.jpg&quot; rel=&quot;nofollow&quot;&gt;screenshot&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Goliad:<br />
It is likely that your tabBarController attribute is not initialized and point to the UITabBarController instance. You can link the attribute and the UITabBarController object in the Interface Buider (IB). Please refer to the second &#8220;window&#8221; in the <a href="http://miketeo.net/wp/wp-content/uploads/2008/08/tabbarcontroller_test.jpg" rel="nofollow">screenshot</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goliad</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-783</link>
		<dc:creator>Goliad</dc:creator>
		<pubDate>Thu, 04 Jun 2009 03:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-783</guid>
		<description>That&#039;s a really good example to show how tabBarController.selectedIndex to work. Thanks. I try to follow your example and add a button on SecondView so that I can jump back to FirstView without using its tab bar. So, I created a SecondViewController.h/m exactly as you did for FirstViewController. But when I hit 
&quot;changeToFirstView&quot; button, the app threw an error, complaining the method

- (void)changeToFirstView:(id)sender {
	tabBarController.selectedIndex = 0;
	NSLog(@&quot;changed to FirstView\n&quot;);
}

Maybe I need to do something different than just copying the code for FirstViewController.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a really good example to show how tabBarController.selectedIndex to work. Thanks. I try to follow your example and add a button on SecondView so that I can jump back to FirstView without using its tab bar. So, I created a SecondViewController.h/m exactly as you did for FirstViewController. But when I hit<br />
&#8220;changeToFirstView&#8221; button, the app threw an error, complaining the method</p>
<p>- (void)changeToFirstView:(id)sender {<br />
	tabBarController.selectedIndex = 0;<br />
	NSLog(@&#8221;changed to FirstView\n&#8221;);<br />
}</p>
<p>Maybe I need to do something different than just copying the code for FirstViewController.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miketeo</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-782</link>
		<dc:creator>miketeo</dc:creator>
		<pubDate>Thu, 04 Jun 2009 02:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-782</guid>
		<description>@goliad:
I have uploaded a working example on this. You can download it at http://miketeo.net/wp/wp-content/uploads/2008/08/tabbartest.zip</description>
		<content:encoded><![CDATA[<p>@goliad:<br />
I have uploaded a working example on this. You can download it at <a href="http://miketeo.net/wp/wp-content/uploads/2008/08/tabbartest.zip" rel="nofollow">http://miketeo.net/wp/wp-content/uploads/2008/08/tabbartest.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goliad</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-781</link>
		<dc:creator>goliad</dc:creator>
		<pubDate>Wed, 03 Jun 2009 21:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-781</guid>
		<description>I want to jump to SecondTabView from OnOffTableCell, that is, whenever switchToggled (inside FirstTabView). I added the following code but could not get it to work.

OnOffTableCell.h --------------------------------------

@interface OnOffTableCell : UITableViewCell {
	...
	IBOutlet UITabBarController *tabBarController;
	...
}
@property (nonatomic, retain) UITabBarController *tabBarController;

OnOffTableCell.m --------------------------
@synthesize tabBarController;

- (void)switchToggled:(UISwitch*)control {
	NSLog(@&quot;OnOffTableCell:switchToggled: ....
	[[NSNotificationCenter defaultCenter]   .....
	tabBarController.selectedIndex=1;
        ....
}

I must miss something (very new to Xcode). Could you suggest a few options to debug? Thanks.</description>
		<content:encoded><![CDATA[<p>I want to jump to SecondTabView from OnOffTableCell, that is, whenever switchToggled (inside FirstTabView). I added the following code but could not get it to work.</p>
<p>OnOffTableCell.h &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>@interface OnOffTableCell : UITableViewCell {<br />
	&#8230;<br />
	IBOutlet UITabBarController *tabBarController;<br />
	&#8230;<br />
}<br />
@property (nonatomic, retain) UITabBarController *tabBarController;</p>
<p>OnOffTableCell.m &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
@synthesize tabBarController;</p>
<p>- (void)switchToggled:(UISwitch*)control {<br />
	NSLog(@&#8221;OnOffTableCell:switchToggled: &#8230;.<br />
	[[NSNotificationCenter defaultCenter]   &#8230;..<br />
	tabBarController.selectedIndex=1;<br />
        &#8230;.<br />
}</p>
<p>I must miss something (very new to Xcode). Could you suggest a few options to debug? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miketeo</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-778</link>
		<dc:creator>miketeo</dc:creator>
		<pubDate>Wed, 03 Jun 2009 05:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-778</guid>
		<description>@Goliad: Check out UITabBarController&#039;s selectedIndex property. It allows you change the tab bar&#039;s current selected view controller. So you can change this property in your first tab&#039;s event handler to switch to another tab.</description>
		<content:encoded><![CDATA[<p>@Goliad: Check out UITabBarController&#8217;s selectedIndex property. It allows you change the tab bar&#8217;s current selected view controller. So you can change this property in your first tab&#8217;s event handler to switch to another tab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goliad</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-777</link>
		<dc:creator>Goliad</dc:creator>
		<pubDate>Wed, 03 Jun 2009 04:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-777</guid>
		<description>This helps understand how NotificationCenter works. Is a way to use an event inside First Tab to automatically switch to Second Tab without clicking Second Tab?</description>
		<content:encoded><![CDATA[<p>This helps understand how NotificationCenter works. Is a way to use an event inside First Tab to automatically switch to Second Tab without clicking Second Tab?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miketeo</title>
		<link>http://miketeo.net/wp/index.php/2008/08/31/simple-iphone-tutorial-part-3.html/comment-page-1#comment-754</link>
		<dc:creator>miketeo</dc:creator>
		<pubDate>Mon, 27 Apr 2009 02:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://miketeo.net/wp/?p=448#comment-754</guid>
		<description>@Veri:
Thanks for pointing this out. I have fixed the link. It&#039;s working now.</description>
		<content:encoded><![CDATA[<p>@Veri:<br />
Thanks for pointing this out. I have fixed the link. It&#8217;s working now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

