<?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>Unlikely Teacher &#187; iPhone SDK</title>
	<atom:link href="http://unlikelyteacher.com/tag/iphone-sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://unlikelyteacher.com</link>
	<description>1. Share Everything* [Programming Gotchas, Technology News, Insights on Living and Everything in Between]</description>
	<lastBuildDate>Fri, 03 Sep 2010 04:12:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Extra Space (20px) in iPhone OS 2.2.1 Nav Bar</title>
		<link>http://unlikelyteacher.com/2009/07/01/extra-space-20px-in-nav-bar-within-a-tab-bar/</link>
		<comments>http://unlikelyteacher.com/2009/07/01/extra-space-20px-in-nav-bar-within-a-tab-bar/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:04:06 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Cocoa Touch]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://unlikelyteacher.com/?p=449</guid>
		<description><![CDATA[I currently have an iPhone application which has 4 tabs, when I click any of those tabs, the application should show a new view with a Nav Bar which then contains a table view. My problem: there was blank space (about 20 pixels) showing between the status bar and the Nav Bar. I tried looking [...]]]></description>
			<content:encoded><![CDATA[<p>I currently have an iPhone application which has 4 tabs, when I click any of those tabs, the application should show a new view with a Nav Bar which then contains a table view.</p>
<p>My problem: there was blank space (about 20 pixels) showing between the status bar and the Nav Bar. I tried looking in the Nibs about setting this value but without luck.</p>
<p>What&#8217;s even weirder is the fact that this problem does not occur when running against the OS 3.0 simulator.</p>
<p>Fortunately, after days of searching, I found the workaround for OS 2.2.1 and below.</p>
<pre class="brush: cpp">
    CGRect frame = navController.view.frame;
    frame.origin.y = 0.0;
    navController.view.frame = frame;
</pre>
<p>Answer taken from <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/4225-navigation-controller-20px-short.html">iphonedevsdk.com</a>.</p>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://unlikelyteacher.com/2009/07/01/extra-space-20px-in-nav-bar-within-a-tab-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
