<?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>bunnyhero dev &#187; UIKit</title>
	<atom:link href="http://www.bunnyhero.org/tag/uikit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunnyhero.org</link>
	<description>Notes on iPhone, Flash and Web development</description>
	<lastBuildDate>Fri, 23 Jul 2010 18:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>UITabBarController timing change from OS 2.X to 3.0</title>
		<link>http://www.bunnyhero.org/2009/06/29/uitabbarcontroller-timing-change/</link>
		<comments>http://www.bunnyhero.org/2009/06/29/uitabbarcontroller-timing-change/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 21:58:50 +0000</pubDate>
		<dc:creator>bunnyhero</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone OS 3.0]]></category>
		<category><![CDATA[UIKit]]></category>
		<category><![CDATA[UITabBarController]]></category>

		<guid isPermaLink="false">http://www.bunnyhero.org/?p=207</guid>
		<description><![CDATA[This is just a short note about a change I discovered between iPhone OS 2.x and 3.0. It&#8217;s not very interesting or exciting but I thought I&#8217;d record it in the off chance that it helps someone else. When the user switches tabs on a UITabBarController in iPhone OS 2.x, the sequence of events is: UIView of new tab gets added as a subview UIView of old tab gets removed The delegate&#8217;s tabBarController:didSelectViewController: method is called Run the same code on iPhone OS 3.0, however, and the sequence is this: UIView of new tab gets added as a subview The delegate&#8217;s tabBarController:didSelectViewController: method is called UIView of old tab gets removed (sometime later, I think it&#8217;s invoked via one of NSObject&#8216;s performSelector: methods) This is a inconsequential change for most, but it might make a difference if you are checking the UIViews&#8217; superview variables in your tab bar controller delegate method.]]></description>
			<content:encoded><![CDATA[<p>This is just a short note about a change I discovered between iPhone OS 2.x and 3.0. It&#8217;s not very interesting or exciting but I thought I&#8217;d record it in the off chance that it helps someone else.</p>
<p>When the user switches tabs on a <code>UITabBarController</code> in iPhone OS 2.x, the sequence of events is:</p>
<ol>
<li><code>UIView</code> of new tab gets added as a subview</li>
<li><code>UIView</code> of old tab gets removed</li>
<li>The delegate&#8217;s <code>tabBarController:didSelectViewController:</code> method is called</li>
</ol>
<p>Run the same code on iPhone OS 3.0, however, and the sequence is this:
<ol>
<li><code>UIView</code> of new tab gets added as a subview</li>
<li>The delegate&#8217;s <code>tabBarController:didSelectViewController:</code> method is called</li>
<li><code>UIView</code> of old tab gets removed (sometime later, I think it&#8217;s invoked via one of <code>NSObject</code>&#8216;s <code>performSelector:</code> methods)</li>
</ol>
<p>This is a inconsequential change for most, but it might make a difference if you are checking the <code>UIView</code>s&#8217; <code>superview</code> variables in your tab bar controller delegate method.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunnyhero.org/2009/06/29/uitabbarcontroller-timing-change/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
