<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Get Set Games &#187; UIStatusBarHidden</title>
	<atom:link href="http://getsetgames.com/tag/uistatusbarhidden/feed/" rel="self" type="application/rss+xml" />
	<link>http://getsetgames.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Apr 2012 16:58:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><cloud domain='getsetgames.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<link rel="http://api.friendfeed.com/2008/03#sup" xmlns="http://www.w3.org/2005/Atom" type="application/json" href="http://friendfeed.com/api/public-sup.json#5c973c50be"/>		<item>
		<title>How to Hide (and Show) the Status Bar</title>
		<link>http://getsetgames.com/2009/12/11/iphonedev-advent-tip-11-how-to-hide-and-show-the-status-bar/</link>
		<comments>http://getsetgames.com/2009/12/11/iphonedev-advent-tip-11-how-to-hide-and-show-the-status-bar/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 00:59:35 +0000</pubDate>
		<dc:creator>Derek van Vliet</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[advent]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[UIApplication]]></category>
		<category><![CDATA[UIStatusBarHidden]]></category>

		<guid isPermaLink="false">http://getsetgames.com/?p=943</guid>
		<description><![CDATA[On the iPhone&#8217;s 320&#215;480 screen, pixel real estate is at a premium, especially for games. Often, the status bar represents 20 pixels of height that you as a developer just [...]]]></description>
			<content:encoded><![CDATA[<p>On the iPhone&#8217;s 320&#215;480 screen, pixel real estate is at a premium, especially for games. Often, the status bar represents 20 pixels of height that you as a developer just can&#8217;t afford to give away. Fortunately there are 2 simple ways to remove the status bar.</p>
<h2>UIStatusBarHidden</h2>
<p><img src="http://getsetgames.com/wp-content/uploads/2009/12/uistatusbarhidden2.png" alt="uistatusbarhidden2" title="uistatusbarhidden2" width="315" height="62" class="alignright size-full wp-image-947" />The first way is by adding a setting to your app&#8217;s info.plist file called UIStatusBarHidden. This is ideal for apps that should never display the status bar. Just follow these steps to change the setting:</p>
<p>1. Open your iPhone app&#8217;s info.plist file.</p>
<p>2. Command-click and select Add Row.</p>
<p>3. Select &#8220;Status bar is initially hidden&#8221; from the drop down that appears.</p>
<p>4. Check the checkbox that appears next to the new row.</p>
<p>You could also add this setting to your app&#8217;s info.plist file by opening it in a text editor and adding the following 2 XML tags inside the &lt;dict&gt; tag:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>UIStatusBarHidden<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;true</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	...</pre></div></div>

<h2>How to Do it With Code</h2>
<p>If you need the status bar to appear and disappear at runtime, then you will need to use code to do so. You can hide the status bar with one line of code:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIApplication sharedApplication<span style="color: #002200;">&#93;</span> setStatusBarHidden<span style="color: #002200;">:</span><span style="color: #a61390;">YES</span> animated<span style="color: #002200;">:</span><span style="color: #a61390;">NO</span><span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>And to show it again, simply call the above line and pass &#8220;NO&#8221; into setStatusBarHidden instead of &#8220;YES&#8221;. You can also fade the status bar in and out by passing &#8220;YES&#8221; into the &#8220;animated&#8221; part of the message. </p>
]]></content:encoded>
			<wfw:commentRss>http://getsetgames.com/2009/12/11/iphonedev-advent-tip-11-how-to-hide-and-show-the-status-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://getsetgames.com/wp-content/uploads/2009/12/uistatusbarhidden2-150x62.png" />
		<media:content url="http://getsetgames.com/wp-content/uploads/2009/12/uistatusbarhidden2.png" medium="image">
			<media:title type="html">uistatusbarhidden2</media:title>
			<media:thumbnail url="http://getsetgames.com/wp-content/uploads/2009/12/uistatusbarhidden2-150x62.png" />
		</media:content>
	</item>
	</channel>
</rss>

