<?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>#iPhoneDev &#187; Code Snippets</title>
	<atom:link href="http://iphone.keyvisuals.com/category/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphone.keyvisuals.com</link>
	<description>Because Corporate Jobs Suck.</description>
	<lastBuildDate>Wed, 27 Jan 2010 19:42:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>easyAPNS: Open Source Push Notification Service (using PHP/mySQL)</title>
		<link>http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 17:45:44 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[apns]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[push]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=757</guid>
		<description><![CDATA[easyAPNS is an open source (free) system for sending Apple&#8217;s push notifications to a device. From their website:

What is Easy APNs?
If you are a native iPhone application developer, you may have heard of the Apple Push Notification service (APNs). There are a lot of excellent online guides on how to get your application to receive [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://iphone.keyvisuals.com/wp-content/uploads/2010/01/apns.png"><img class="alignleft size-full wp-image-759" title="apns" src="http://iphone.keyvisuals.com/wp-content/uploads/2010/01/apns.png" alt="" width="54" height="55" /></a>easyAPNS is an open source (free) system for sending Apple&#8217;s push notifications to a device. <em>From their website:</em></p>
<p><a href="http://iphone.keyvisuals.com/wp-content/uploads/2010/01/easyAPNS.png"><img class="alignleft size-full wp-image-758" title="easyAPNS" src="http://iphone.keyvisuals.com/wp-content/uploads/2010/01/easyAPNS.png" alt="" width="185" height="323" /></a></p>
<p><strong>What is Easy APNs?</strong><br />
If you are a native iPhone application developer, you may have heard of the Apple Push Notification service (APNs). There are a lot of excellent online guides on how to get your application to receive remote notifications&#8230; but what about the other piece of the puzzle&#8230; ACTUALLY SENDING A MESSAGE?!?!</p>
<p>This very cool project is brought you by <a href="http://www.manifestinteractive.com/" target="_blank">Manifest Interactive</a>.</p>
<p>*NOTE: I was NOT able to get this up and running on GoDaddy Hosting for some unknown reason, but the same exact files worked <strong>flawlessly </strong>on <a href="http://mediatemple.net/" target="_blank"><strong>(mt) MediaTemple</strong></a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;title=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;t=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29+-+http://b2l.me/cu2xc+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;t=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;title=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29&amp;link=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;title=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/&amp;title=easyAPNS%3A+Open+Source+Push+Notification+Service+%28using+PHP%2FmySQL%29&amp;summary=easyAPNS%20is%20an%20open%20source%20%28free%29%20system%20for%20sending%20Apple%27s%20push%20notifications%20to%20a%20device.%20From%20their%20website%3A%0D%0A%0D%0A%0D%0A%0D%0AWhat%20is%20Easy%20APNs%3F%0D%0AIf%20you%20are%20a%20native%20iPhone%20application%20developer%2C%20you%20may%20have%20heard%20of%20the%20Apple%20Push%20Notification%20service%20%28APNs%29.%20There%20are%20a%20lot%20of%20excellent%20online%20guides%20o&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/easyapns-open-source-push-notification-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIXED: stringWithContentsOfFile is Deprecated Error</title>
		<link>http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/</link>
		<comments>http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 19:02:13 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[deprecated]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fixed]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=546</guid>
		<description><![CDATA[Now that I&#8217;ve started working  with the latest and greatest iPhone SDK I&#8217;m running into a bunch of deprecated method errors. It&#8217;s recommended practice to treat warnings the same as errors so I have been trying to fix them as they pop up. The one in particular that was giving me trouble today was:
NSString [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;ve started working  with the latest and greatest iPhone SDK I&#8217;m running into a bunch of deprecated method errors. It&#8217;s recommended practice to treat warnings the same as errors so I have been trying to fix them as they pop up. The one in particular that was giving me trouble today was:</p>
<p><span style="color: #000000;"><strong>NSString *contents = [NSString stringWithContentsOfFile:fullpath];</strong></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">After doing a bit of Googling I found the solution. </span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Replace </span></span><span style="color: #ff0000;">NSString *contents = [NSString stringWithContentsOfFile:fullpath];<span style="color: #000000;"> with:</span></span></p>
<p><span style="color: #000000;"><strong> NSString *contents = [NSString stringWithContentsOfFile:fullpath encoding:NSUTF8StringEncoding error:nil];[NSString stringWithContentsOfFile:fullpath encoding:NSUTF8StringEncoding error:nil];</strong></span></p>
<p><span style="color: #000000;"><strong><br />
</strong></span></p>
<p><span style="color: #000000;">(Side Note: Ever since I began coding my vocabulary has expanded. Now I get to use words like <em>Redacted</em> and <em>Deprecated <img src='http://iphone.keyvisuals.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </em>Thanks Apple!<em>)</em><strong><br />
</strong></span></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;title=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;t=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error+-+http://b2l.me/tjdw+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;t=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;title=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error&amp;link=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;title=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/&amp;title=FIXED%3A+stringWithContentsOfFile+is+Deprecated+Error&amp;summary=Now%20that%20I%27ve%20started%20working%20%20with%20the%20latest%20and%20greatest%20iPhone%20SDK%20I%27m%20running%20into%20a%20bunch%20of%20deprecated%20method%20errors.%20It%27s%20recommended%20practice%20to%20treat%20warnings%20the%20same%20as%20errors%20so%20I%20have%20been%20trying%20to%20fix%20them%20as%20they%20pop%20up.%20The%20one%20in%20particular%20that%20was%20giving%20me%20trouble%20today%20was%3A%0D%0A%0D&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/apps/fixed-stringwithcontentsoffile-is-deprecated-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FIXED: XCode Not recognizing Development Device After 3.0.1 Upgrade</title>
		<link>http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/</link>
		<comments>http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 18:29:15 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=448</guid>
		<description><![CDATA[I wasn&#8217;t paying attention yesterday when I opened iTunes it told me there was a new version of  iPhone OS that fixed a major vulnerability. Without thinking I went ahead and updated my iPhone OS to 3.0.1 No big deal right? WRONG. All of a sudden XCode no longer recognizes my phone as a development [...]]]></description>
			<content:encoded><![CDATA[<p>I wasn&#8217;t paying attention yesterday when I opened iTunes it told me there was a new version of  iPhone OS that fixed a major vulnerability. Without thinking I went ahead and updated my iPhone OS to 3.0.1 No big deal right? WRONG. All of a sudden XCode no longer recognizes my phone as a development device.</p>
<p>What this means is that I can no longer test code on my phone  <img src='http://iphone.keyvisuals.com/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </p>
<p>After a quick search I found the solution posted on the iphonedevsdk forums! The original post can be found at <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/21005-xcode-3-1-3-3-0-7a341.html" target="_blank">http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/21005-xcode-3-1-3-3-0-7a341.html</a></p>
<p>For those of you who just want the fix and want it now, here it is . . .</p>
<p><em>(Just paste this line into a terminal window while XCode is closed)</em></p>
<p><strong>ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1</strong></p>
<p>That did it for me, hopefully it helps you!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;title=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;t=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade+-+http://b2l.me/tjhn+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;t=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;title=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade&amp;link=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;title=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/&amp;title=FIXED%3A+XCode+Not+recognizing+Development+Device+After+3.0.1+Upgrade&amp;summary=I%20wasn%27t%20paying%20attention%20yesterday%20when%20I%20opened%20iTunes%20it%20told%20me%20there%20was%20a%20new%20version%20of%C2%A0%20iPhone%20OS%20that%20fixed%20a%20major%20vulnerability.%20Without%20thinking%20I%20went%20ahead%20and%20updated%20my%20iPhone%20OS%20to%203.0.1%20No%20big%20deal%20right%3F%20WRONG.%20All%20of%20a%20sudden%20XCode%20no%20longer%20recognizes%20my%20phone%20as%20a%20development%20&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/apple/fixed-xcode-not-recognizing-development-device-after-upgrade/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Detect Network Availability in apps</title>
		<link>http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/#comments</comments>
		<pubDate>Fri, 08 May 2009 16:18:12 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Keyvisuals]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[edge]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[reachability]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=338</guid>
		<description><![CDATA[** UPDATE 11/12/09 : BOTH my wifi &#38; network connection detection apps are WORKING Again! **

If you write an app that depends on internet access in order to function properly Apple requires that you detect the state of the connection and report it to the user when that connection is unavailable. If you do not [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #ff0000;"><span style="color: #000000;">** </span><span style="color: #339966;">UPDATE 11/12/09 </span></span>: BOTH my wifi &amp; network connection detection apps are WORKING Again! **<br />
</strong></p>
<p>If you write an app that depends on internet access in order to function properly Apple requires that you detect the state of the connection and report it to the user when that connection is unavailable. If you do not Apple will reject your app on the basis that it is confusing to the user. Confusing because the app does not work and Apple assumes that the user will not understand why. Makes sense.</p>
<p>Here is one way to determine whether or not the users device has airplane mode enabled . . .</p>
<ol>
<li>Add <strong>SBUsesNetwork </strong>to the <strong>Info.plist </strong></li>
<li>Change its type to<strong> Boolean</strong></li>
<li>Add a check mark to enable</li>
</ol>
<p>Here is handy little project that detects whether or not your application has access to a WiFi network:</p>
<p><span style="color: #339966;"><a href="http://iphone.keyvisuals.com/downloads/TestWifi_3.0.zip"><strong>Download TestWifi_3.0.zip</strong></a></span></p>
<p>Here is another handy little project that detects whether or not your application has any network access:</p>
<p><a href="http://iphone.keyvisuals.com/downloads/NetConnectDetect_3.0.zip"><strong>Download NetConnectDetection_3.0.zip</strong></a><span style="text-decoration: line-through;"><a href="http://iphone.keyvisuals.com/downloads/NetConnectDetection.zip"><strong><br />
</strong></a></span></p>
<p>Feel free to use any of the above code in any way you wish. I am providing it in the hopes that it will help save someone from the headache that I experienced all day yesterday trying to get network detection to work <img src='http://iphone.keyvisuals.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>If you find any errors or corrections please notify me and I will update the sample apps. Thanks!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;title=How+to+Detect+Network+Availability+in+apps" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;t=How+to+Detect+Network+Availability+in+apps" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+to+Detect+Network+Availability+in+apps+-+http://b2l.me/tjjh+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;t=How+to+Detect+Network+Availability+in+apps" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;title=How+to+Detect+Network+Availability+in+apps" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=How+to+Detect+Network+Availability+in+apps&amp;link=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;title=How+to+Detect+Network+Availability+in+apps" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/&amp;title=How+to+Detect+Network+Availability+in+apps&amp;summary=%2A%2A%20UPDATE%2011%2F12%2F09%20%3A%20BOTH%20my%20wifi%20%26amp%3B%20network%20connection%20detection%20apps%20are%20WORKING%20Again%21%20%2A%2A%0D%0A%0D%0A%0D%0AIf%20you%20write%20an%20app%20that%20depends%20on%20internet%20access%20in%20order%20to%20function%20properly%20Apple%20requires%20that%20you%20detect%20the%20state%20of%20the%20connection%20and%20report%20it%20to%20the%20user%20when%20that%20connection%20is%20unavaila&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/how-to-detect-network-availability-in-apps/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>How to remove the glossy effect from your app icons</title>
		<link>http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/</link>
		<comments>http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 22:07:16 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=245</guid>
		<description><![CDATA[Here&#8217;s how to remove the shinny gloss look that is automagically added to your app icon by xCode. Sometimes you just don&#8217;t want to look like everyone else  
You have to add the line
UIPrerenderedIcon
to your Info.plist file. Change its value to boolean and then add a check mark like below . . .

That will [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to remove the shinny gloss look that is automagically added to your app icon by xCode. Sometimes you just don&#8217;t want to look like everyone else <img src='http://iphone.keyvisuals.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>You have to add the line</p>
<blockquote><p>UIPrerenderedIcon</p></blockquote>
<p>to your Info.plist file. Change its value to boolean and then add a check mark like below . . .</p>
<p><img class="size-full wp-image-246 alignnone" title="gloss1" src="http://iphone.keyvisuals.com/wp-content/uploads/2009/04/gloss1.jpg" alt="gloss1" width="386" height="101" /></p>
<p>That will change this into this :</p>
<p><img class="size-full wp-image-247 alignnone" title="gloss2" src="http://iphone.keyvisuals.com/wp-content/uploads/2009/04/gloss2.jpg" alt="gloss2" width="163" height="94" /></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;title=How+to+remove+the+glossy+effect+from+your+app+icons" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;t=How+to+remove+the+glossy+effect+from+your+app+icons" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+to+remove+the+glossy+effect+from+your+app+icons+-+http://b2l.me/tjjq+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;t=How+to+remove+the+glossy+effect+from+your+app+icons" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;title=How+to+remove+the+glossy+effect+from+your+app+icons" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=How+to+remove+the+glossy+effect+from+your+app+icons&amp;link=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;title=How+to+remove+the+glossy+effect+from+your+app+icons" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/&amp;title=How+to+remove+the+glossy+effect+from+your+app+icons&amp;summary=Here%27s%20how%20to%20remove%20the%20shinny%20gloss%20look%20that%20is%20automagically%20added%20to%20your%20app%20icon%20by%20xCode.%20Sometimes%20you%20just%20don%27t%20want%20to%20look%20like%20everyone%20else%20%3B-%29%0D%0A%0D%0AYou%20have%20to%20add%20the%20line%0D%0AUIPrerenderedIcon%0D%0Ato%20your%20Info.plist%20file.%20Change%20its%20value%20to%20boolean%20and%20then%20add%20a%20check%20mark%20like%20below%20.%20.&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/apps/how-to-remove-the-glossy-effect-from-your-app-icons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Launch App Store Search to your Developer Account</title>
		<link>http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:20:12 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=211</guid>
		<description><![CDATA[Here&#8217;s a handy code if you would like to add a button to your app that allows users to click it and be taken directly to a search listing of ALL your apps on the iTunes App Store. (see below) This is alot handier than adding a button/link to each individual app  





		
			Digg this!
		
		
			Share [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a handy code if you would like to add a button to your app that allows users to click it and be taken directly to a search listing of ALL your apps on the iTunes App Store. (see below) This is alot handier than adding a button/link to each individual app <img src='http://iphone.keyvisuals.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;title=Launch+App+Store+Search+to+your+Developer+Account" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;t=Launch+App+Store+Search+to+your+Developer+Account" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Launch+App+Store+Search+to+your+Developer+Account+-+http://b2l.me/tjju+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;t=Launch+App+Store+Search+to+your+Developer+Account" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;title=Launch+App+Store+Search+to+your+Developer+Account" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Launch+App+Store+Search+to+your+Developer+Account&amp;link=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;title=Launch+App+Store+Search+to+your+Developer+Account" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/&amp;title=Launch+App+Store+Search+to+your+Developer+Account&amp;summary=Here%27s%20a%20handy%20code%20if%20you%20would%20like%20to%20add%20a%20button%20to%20your%20app%20that%20allows%20users%20to%20click%20it%20and%20be%20taken%20directly%20to%20a%20search%20listing%20of%20ALL%20your%20apps%20on%20the%20iTunes%20App%20Store.%20%28see%20below%29%20This%20is%20alot%20handier%20than%20adding%20a%20button%2Flink%20to%20each%20individual%20app%20%3B-%29&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<textarea cols="40" rows="10" name="code" class="Xml">http://phobos.apple.com/WebObjects/MZSearch.woa/wa/search?media=software&submit=media&term=YOURSEARCHTERM</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shBrushXml.js"></script>
	<link type="text/css" rel="stylesheet" href="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/launch-app-store-search-to-your-developer-account/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sending an SMS message from your app</title>
		<link>http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:16:35 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=208</guid>
		<description><![CDATA[If you would like to launch the SMS app and send a predefined message use the code below





		
			Digg this!
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Post this to MySpace
		
		
			Share this on del.icio.us
		
		
			Share this on FriendFeed
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			
		
		
			Share this on LinkedIn
		





[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:55555"]];
	
	
	
	
	
	dp.SyntaxHighlighter.ClipboardSwf = 'http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	
	]]></description>
			<content:encoded><![CDATA[<p>If you would like to launch the SMS app and send a predefined message use the code below</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;title=Sending+an+SMS+message+from+your+app" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;t=Sending+an+SMS+message+from+your+app" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Sending+an+SMS+message+from+your+app+-+http://b2l.me/tjjv+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;t=Sending+an+SMS+message+from+your+app" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;title=Sending+an+SMS+message+from+your+app" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Sending+an+SMS+message+from+your+app&amp;link=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;title=Sending+an+SMS+message+from+your+app" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/&amp;title=Sending+an+SMS+message+from+your+app&amp;summary=If%20you%20would%20like%20to%20launch%20the%20SMS%20app%20and%20send%20a%20predefined%20message%20use%20the%20code%20below&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<textarea cols="40" rows="10" name="code" class="Css">[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:55555"]];</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shBrushCss.js"></script>
	<link type="text/css" rel="stylesheet" href="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/sending-an-sms-message-from-your-app/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Calling a Phone Number from your Application</title>
		<link>http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:14:05 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=205</guid>
		<description><![CDATA[If you would like to add a button to your application and have it launch the Phone app to dial a pre-defined phone number use the code below.





		
			Digg this!
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Post this to MySpace
		
		
			Share this on del.icio.us
		
		
			Share this on FriendFeed
		
		
			Stumble upon something good? Share it on StumbleUpon
		
		
			
		
		
			Share this on LinkedIn
		





[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];
	
	
	
	
	
	dp.SyntaxHighlighter.ClipboardSwf [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to add a button to your application and have it launch the Phone app to dial a pre-defined phone number use the code below.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;title=Calling+a+Phone+Number+from+your+Application" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;t=Calling+a+Phone+Number+from+your+Application" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Calling+a+Phone+Number+from+your+Application+-+http://b2l.me/tjjw+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;t=Calling+a+Phone+Number+from+your+Application" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;title=Calling+a+Phone+Number+from+your+Application" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Calling+a+Phone+Number+from+your+Application&amp;link=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;title=Calling+a+Phone+Number+from+your+Application" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/&amp;title=Calling+a+Phone+Number+from+your+Application&amp;summary=If%20you%20would%20like%20to%20add%20a%20button%20to%20your%20application%20and%20have%20it%20launch%20the%20Phone%20app%20to%20dial%20a%20pre-defined%20phone%20number%20use%20the%20code%20below.&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<textarea cols="40" rows="10" name="code" class="Cpp">[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shBrushCpp.js"></script>
	<link type="text/css" rel="stylesheet" href="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/calling-a-phone-number-from-your-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to hide the UIStatus Bar</title>
		<link>http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/</link>
		<comments>http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:10:22 +0000</pubDate>
		<dc:creator>keyvisuals</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://iphone.keyvisuals.com/?p=200</guid>
		<description><![CDATA[This has got to be one of the top questions asked by new app developers. &#8220;How do I hide the UIStatus Bar?&#8221;
You can use the code snippet below or add UIStatusBarHidden to your info.Plist file, change it&#8217;s type to boolean and add a check mark to the box.





		
			Digg this!
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Post this to [...]]]></description>
			<content:encoded><![CDATA[<p>This has got to be one of the top questions asked by new app developers. <em>&#8220;How do I hide the UIStatus Bar?&#8221;</em></p>
<p>You can use the code snippet below or add <strong>UIStatusBarHidden</strong> to your info.Plist file, change it&#8217;s type to boolean and add a check mark to the box.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-sexy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;title=How+to+hide+the+UIStatus+Bar" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;t=How+to+hide+the+UIStatus+Bar" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+to+hide+the+UIStatus+Bar+-+http://b2l.me/tjjx+(via+@keyvisuals)&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;t=How+to+hide+the+UIStatus+Bar" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;title=How+to+hide+the+UIStatus+Bar" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-friendfeed">
			<a href="http://www.friendfeed.com/share?title=How+to+hide+the+UIStatus+Bar&amp;link=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;title=How+to+hide+the+UIStatus+Bar" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/&amp;title=How+to+hide+the+UIStatus+Bar&amp;summary=This%20has%20got%20to%20be%20one%20of%20the%20top%20questions%20asked%20by%20new%20app%20developers.%20%22How%20do%20I%20hide%20the%20UIStatus%20Bar%3F%22%0D%0A%0D%0AYou%20can%20use%20the%20code%20snippet%20below%20or%20add%20UIStatusBarHidden%20to%20your%20info.Plist%20file%2C%20change%20it%27s%20type%20to%20boolean%20and%20add%20a%20check%20mark%20to%20the%20box.&amp;source=#iPhoneDev" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

<textarea cols="40" rows="10" name="code" class="CSharp">[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]];</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/shBrushCSharp.js"></script>
	<link type="text/css" rel="stylesheet" href="http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://iphone.keyvisuals.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://iphone.keyvisuals.com/code-snippets/how-to-hide-the-uistatus-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
