<?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>Kastang &#187; iPhone</title>
	<atom:link href="http://kastang.com/blog/category/computer/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://kastang.com</link>
	<description>Ramblings of a Geek</description>
	<lastBuildDate>Sat, 11 Jun 2011 00:30:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>iPhone Dev Tip &#8211; Determining Connection Type</title>
		<link>http://kastang.com/blog/2009/08/iphone-dev-tip-determining-connection-type/</link>
		<comments>http://kastang.com/blog/2009/08/iphone-dev-tip-determining-connection-type/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 03:42:14 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone Dev]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=188</guid>
		<description><![CDATA[I am working on an iPhone application that requires the ability to recognize which type of internet connection is currently being used (Wifi, 3G, Edge, etc).  I found a simple way to check by using Apples Reachability sample code. There seems to be a shortage of information about this online, I hope this can help someone. [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on an iPhone application that requires the ability to recognize which type of internet connection is currently being used (Wifi, 3G, Edge, etc).  I found a simple way to check by using Apples <a href="http://developer.apple.com/iphone/library/samplecode/Reachability/">Reachability </a>sample code. There seems to be a shortage of information about this online, I hope this can help someone.</p>
<p>First copy Reachability.m/.h into your project and include #include "Reachability.h" into your class.</p>
<pre>	Reachability *reach = [[Reachability alloc]init];
	if (reach.internetConnectionStatus == NotReachable) {
		NSLog(@"No Connection Found");
	} else if (reach.internetConnectionStatus == ReachableViaCarrierDataNetwork) {
		NSLog(@"3G or Edge");
	} else if (reach.internetConnectionStatus == ReachableViaWiFiNetwork) {
		NSLog(@"Wifi Connection");
	}
	[reach release];</pre>
<p>This code may not be the best way to accomplish this, but it appears to be the most simple approach.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2009/08/iphone-dev-tip-determining-connection-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

