<?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>de &#187; iphone</title>
	<atom:link href="http://duivesteyn.net/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://duivesteyn.net</link>
	<description></description>
	<lastBuildDate>Tue, 20 Apr 2010 22:00:41 +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>iPhone SDK &#8211; Get Current Touch Location</title>
		<link>http://duivesteyn.net/2010/04/16/iphone-sdk-get-current-touch-location/</link>
		<comments>http://duivesteyn.net/2010/04/16/iphone-sdk-get-current-touch-location/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 07:00:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[touch-location]]></category>
		<category><![CDATA[UITouch]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/13/iphone-sdk-get-current-touch-location/</guid>
		<description><![CDATA[Quick one today, I’m working on something new. It neeeded the last touch location to display some user input. It took me a little while to figure out how to call the location of the currently touched location, but its simple. Just paste the following method into a viewcontroller: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 12pt;">Quick one today, I’m working on something new. It neeeded the last touch location to display some user input. It took me a little while to figure out how to call the location of the currently touched location, but its simple.</p>
<p>Just paste the following method into a viewcontroller:</p>
<p></span>- (<span style="color: rgb(170,13,145);">void</span>)touchesMoved:(<span style="color: rgb(92,38,153);">NSSet</span> *)touches withEvent:(<span style="color: rgb(92,38,153);">UIEvent</span> *)event {<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(0,116,0);">// get touch event</span><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(92,38,153);">UITouch</span> *touch = [[event <span style="color: rgb(46,13,110);">allTouches</span>] <span style="color: rgb(46,13,110);">anyObject</span>];<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(92,38,153);">CGPoint</span> pos = [touch <span style="color: rgb(46,13,110);">locationInView</span>: [<span style="color: rgb(92,38,153);">UIApplication</span> <span style="color: rgb(46,13,110);">sharedApplication</span>].<span style="color: rgb(46,13,110);">keyWindow</span>];<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(46,13,110);">NSLog</span>(<span style="color: rgb(196,26,22);">@&#8221;Position of touch: %.3f, %.3f&#8221;</span>, pos.<span style="color: rgb(92,38,153);">x</span>, pos.<span style="color: rgb(92,38,153);">y</span>);<br />
}</p>
<p>thats it! Check the Console/Log to see the output.<br />
Note, using this over a tableviewcontroller is a different story, that is something I am yet to need, or figure out.</p>
<p><span style="font-size: 12pt;"><img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-13at21.10.23.HdXB78fAPxSp.jpg" alt="Screenshot2010-04-13at21.10.23.HdXB78fAPxSp.jpg" width="730" height="385" /></span></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/16/iphone-sdk-get-current-touch-location/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone SDK &#8211; Animate button press (highlight) with alternate buttons</title>
		<link>http://duivesteyn.net/2010/04/13/iphone-sdk-animate-button-press-highlight-with-alternate-buttons/</link>
		<comments>http://duivesteyn.net/2010/04/13/iphone-sdk-animate-button-press-highlight-with-alternate-buttons/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 07:00:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[Highlighted]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[UIButton]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/08/iphone-sdk-animate-button-press-highlight-with-alternate-buttons/</guid>
		<description><![CDATA[I was interested in implementing a simple button, which had a normal state and a ‘pressed’ or ‘highlighted’ state when being touched. I found an endless supply of lines of code, but after a little more playing around I found something new. And, it uses my fantastic principle of ‘simple’! Firstly, what does the button [...]]]></description>
			<content:encoded><![CDATA[<p>I was interested in implementing a simple button, which had a normal state and a ‘pressed’ or ‘highlighted’ state when being touched. I found an endless supply of lines of code, but after a little more playing around I found something new. And, it uses my fantastic principle of ‘simple’!</p>
<p>Firstly, what does the button look like? Its very simple really, its a modest edit button. The left image is the Normal state, the right button is for the highlighted state.</p>
<p><img src="http://duivesteyn.net/wp-content/uploads/2010/04/button-edit.aRIFeugod4Dy.jpg" alt="button-edit.aRIFeugod4Dy.jpg" width="51" height="25" /><img src="http://duivesteyn.net/wp-content/uploads/2010/04/button-edit-toucheddown.j8VuddV07gAQ.jpg" alt="button-edit-toucheddown.j8VuddV07gAQ.jpg" width="51" height="25" /></p>
<p>And here is a (blurred) pic of the edit button in action, in my current development app. I did say it is modest.</p>
<p><img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screen-shot-2010-04-07-at-23.31.28.ZpA61gVboFc3.jpg" alt="Screen-shot-2010-04-07-at-23.31.28.ZpA61gVboFc3.jpg" width="400" height="465" /></p>
<p><strong>So how is it done?</strong></p>
<p><strong> </strong></p>
<p>Well this one is 100% thanks to <a href="http://en.wikipedia.org/wiki/Interface_Builde">Interface Builder</a> and it should be quite easy to follow.</p>
<p>Well, open Interface Builder, create a UIButton and add an Image to the button (as one normally would). See the below screenshot.<br />
 <img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-07at23.31.45.7ZbhOvcKdeMV.jpg" alt="Screenshot2010-04-07at23.31.45.7ZbhOvcKdeMV.jpg" width="280" height="564" /></p>
<p>Now, Do you see where it says ‘Default State Configuration’ just under the ‘type’ setting? Press it</p>
<p><img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-07at23.31.54.wVlfeQWuTcPN.jpg" alt="Screenshot2010-04-07at23.31.54.wVlfeQWuTcPN.jpg" width="293" height="114" /><br />
 We are now given 4 states where we are able to alter the button under, all without requiring any code at all!<br />
 <strong>Default State</strong>: Button is in its normal state<br />
 <strong>Highlighted State:</strong> Button is being pressed (this is the one we want)<br />
 <strong>Selected State</strong>: Extra code has registered this button as ‘active’ and so its in ‘selected’ mode<br />
 <strong>Disabled State:</strong> Extra code has registered this button as ‘disabled’ and so its in ‘disabled’ mode</p>
<p>So now I would go into ‘Highlighted State’ and just change the image, to the second edit image (see below).</p>
<p><img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-07at23.31.56.WW7EQZ1udtpy.jpg" alt="Screenshot2010-04-07at23.31.56.WW7EQZ1udtpy.jpg" width="289" height="567" /></p>
<p>And thats it! No code at all. Build your app and test it!</p>
<p><strong>Future Exercise:</strong><br />
 Create the entire button without even the jpgs (Skill: Beginner)</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><strong>Download</strong>: PSD Files (free for personal/commercial use)</p>
<p><a href="http://duivesteyn.net/wp-content/uploads/2010/04/post-edit-button-without-code.zip" target="_blank"><img class="alignnone size-full wp-image-608" title="ps-download" src="http://duivesteyn.net/wp-content/uploads/2010/04/ps-download.png" alt="" width="651" height="205" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/13/iphone-sdk-animate-button-press-highlight-with-alternate-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone OS SDK &#8211; Contact Address Property</title>
		<link>http://duivesteyn.net/2010/03/17/iphone-sdk-contact-address-property/</link>
		<comments>http://duivesteyn.net/2010/03/17/iphone-sdk-contact-address-property/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 10:11:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[addressbook]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/03/17/iphone-sdk-contact-address-property/</guid>
		<description><![CDATA[Today something quick. I&#8217;m working with addressbook information and I am extracting data from a contact, I already know I want in the addressbook (addressbookID=45 lets say). How do I get their address? And their Name, Company, Phone Number and Email! Use the following. NSLog(@&#8221;Looking Up Contact Now&#8221;); ABAddressBookRef ab = ABAddressBookCreate(); ABRecordRef person = [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;"><span style="font-size: small;">Today something quick. I&#8217;m working with addressbook information and I am extracting data from a contact, I already know I want in the addressbook (addressbookID=45 lets say).<br />
 How do I get their address?</span></span><span style="font-size: small;"> </span><span style="color: #000000;"><span style="font-size: small;">And their Name, Company, Phone Number and Email!</span></span></p>
<p><span style="color: #000000;"><span style="font-size: small;"><br />
 Use the following.</span></span></p>
<p><span style="font-size: small;"> </span> <span style="color: #2e0d6e;">NSLog</span><span style="color: #000000;">(</span><span style="color: #c41a16;">@&#8221;Looking Up Contact Now&#8221;</span><span style="color: #000000;">);<br />
 </span><span style="color: #5c2699;">ABAddressBookRef</span> <span style="color: #000000;">ab = </span><span style="color: #2e0d6e;">ABAddressBookCreate</span><span style="color: #000000;">();<br />
 </span><span style="color: #5c2699;">ABRecordRef</span> <span style="color: #000000;">person = </span><span style="color: #2e0d6e;">ABAddressBookGetPersonWithRecordID</span><span style="color: #000000;">(ab,item2.integerValue);</span></p>
<p><span style="color: #2e0d6e;">NSLog</span><span style="color: #000000;">(</span><span style="color: #c41a16;">@&#8221;person: %d&#8221;</span><span style="color: #000000;">,person);<br />
 </span><span style="color: #aa0d91;">if</span> <span style="color: #000000;">(person != </span><span style="color: #aa0d91;">nil</span><span style="color: #000000;">) {</p>
<p> </span><span style="color: #007400;">//Name </span><br />
 <span style="color: #3f6e74;">myName</span> <span style="color: #000000;">= (</span><span style="color: #5c2699;">NSString</span> <span style="color: #000000;">*)</span><span style="color: #2e0d6e;">ABRecordCopyCompositeName</span><span style="color: #000000;">(person);</span></p>
<p><span style="color: #007400;">//Company</span><br />
 <span style="color: #3f6e74;">myCompany</span> <span style="color: #000000;">= (</span><span style="color: #5c2699;">NSString</span> <span style="color: #000000;">*)</span><span style="color: #2e0d6e;">ABRecordCopyValue</span><span style="color: #000000;">(person, </span><span style="color: #5c2699;">kABPersonOrganizationProperty</span><span style="color: #000000;">);</span></p>
<p><span style="color: #007400;">//Email Address (this one is tricky)</span><br />
 <span style="color: #5c2699;">ABMutableMultiValueRef</span> <span style="color: #000000;">emailMulti = </span><span style="color: #2e0d6e;">ABRecordCopyValue</span><span style="color: #000000;">(person, </span><span style="color: #5c2699;">kABPersonEmailProperty</span><span style="color: #000000;">);<br />
 </span><span style="color: #5c2699;">NSMutableArray</span> <span style="color: #000000;">*emails = [[</span><span style="color: #5c2699;">NSMutableArray</span> <span style="color: #2e0d6e;">alloc</span><span style="color: #000000;">] </span><span style="color: #2e0d6e;">init</span><span style="color: #000000;">];<br />
 </span><span style="color: #aa0d91;">for</span> <span style="color: #000000;">(</span><span style="color: #aa0d91;">int</span> <span style="color: #000000;">i = </span><span style="color: #1c00cf;">0</span><span style="color: #000000;">; i &lt; </span><span style="color: #2e0d6e;">ABMultiValueGetCount</span><span style="color: #000000;">(emailMulti); i++) {<br />
 </span><span style="color: #5c2699;">NSString</span> <span style="color: #000000;">*anEmail = [(</span><span style="color: #5c2699;">NSString</span><span style="color: #000000;">*)</span><span style="color: #2e0d6e;">ABMultiValueCopyValueAtIndex</span><span style="color: #000000;">(emailMulti, i) </span><span style="color: #2e0d6e;">autorelease</span><span style="color: #000000;">];<br />
 [emails </span><span style="color: #2e0d6e;">addObject</span><span style="color: #000000;">:anEmail];<br />
 }</span></p>
<p><span style="color: #000000;"><br />
 </span><span style="color: #aa0d91;">if</span><span style="color: #000000;">([emails </span><span style="color: #2e0d6e;">count</span><span style="color: #000000;">] &gt; </span><span style="color: #1c00cf;">0</span><span style="color: #000000;">) </span><span style="color: #3f6e74;">myEmail</span> <span style="color: #000000;">= [emails </span><span style="color: #2e0d6e;">objectAtIndex</span><span style="color: #000000;">:</span><span style="color: #1c00cf;">0</span><span style="color: #000000;">];</span></p>
<p><span style="color: #007400;">//Phone Numbers</span><br />
 <span style="color: #5c2699;">ABMultiValueRef</span> <span style="color: #000000;">phoneNumberProperty = </span><span style="color: #2e0d6e;">ABRecordCopyValue</span><span style="color: #000000;">(person, </span><span style="color: #5c2699;">kABPersonPhoneProperty</span><span style="color: #000000;">);<br />
 </span><span style="color: #5c2699;">NSArray</span><span style="color: #000000;">* phoneNumbers = (</span><span style="color: #5c2699;">NSArray</span><span style="color: #000000;">*)</span><span style="color: #2e0d6e;">ABMultiValueCopyArrayOfAllValues</span><span style="color: #000000;">(phoneNumberProperty);<br />
 </span><span style="color: #2e0d6e;">CFRelease</span><span style="color: #000000;">(phoneNumberProperty);</p>
<p> </span><span style="color: #007400;">// Do whatever you want with the phone numbers</span><br />
 <span style="color: #2e0d6e;">NSLog</span><span style="color: #000000;">(</span><span style="color: #c41a16;">@&#8221;Phone numbers = %@&#8221;</span><span style="color: #000000;">, phoneNumbers);</span></p>
<p><span style="color: #007400;">//Location Address</span><br />
 <span style="color: #5c2699;">ABMutableMultiValueRef</span> <span style="color: #000000;">addressMulti = </span><span style="color: #2e0d6e;">ABRecordCopyValue</span><span style="color: #000000;">(person, </span><span style="color: #5c2699;">kABPersonAddressProperty</span><span style="color: #000000;">);<br />
 </span><span style="color: #5c2699;">NSMutableArray</span> <span style="color: #000000;">*address = [[</span><span style="color: #5c2699;">NSMutableArray</span> <span style="color: #2e0d6e;">alloc</span><span style="color: #000000;">] </span><span style="color: #2e0d6e;">init</span><span style="color: #000000;">];<br />
 </span><span style="color: #aa0d91;">int</span> <span style="color: #000000;">i;<br />
 </span><span style="color: #aa0d91;">for</span> <span style="color: #000000;">(i = </span><span style="color: #1c00cf;">0</span><span style="color: #000000;">; i &lt; </span><span style="color: #2e0d6e;">ABMultiValueGetCount</span><span style="color: #000000;">(addressMulti); i++) {<br />
 </span><span style="color: #5c2699;">NSString</span> <span style="color: #000000;">*city = [(</span><span style="color: #5c2699;">NSString</span><span style="color: #000000;">*)</span><span style="color: #2e0d6e;">ABMultiValueCopyValueAtIndex</span><span style="color: #000000;">(addressMulti, i) </span><span style="color: #2e0d6e;">autorelease</span><span style="color: #000000;">];<br />
 [address </span><span style="color: #2e0d6e;">addObject</span><span style="color: #000000;">:city];<br />
 }<br />
 </span><span style="color: #2e0d6e;">NSLog</span><span style="color: #000000;">(</span><span style="color: #c41a16;">@&#8221;addresses: %@&#8221;</span><span style="color: #000000;">,address);</span></p>
<p>} <span style="color: #aa0d91;">else</span> <span style="color: #000000;">{<br />
 </span><span style="color: #5c2699;">UIAlertView</span> <span style="color: #000000;">*baseAlert = [[</span><span style="color: #5c2699;">UIAlertView</span> <span style="color: #2e0d6e;">alloc</span><span style="color: #000000;">] </span><span style="color: #2e0d6e;">initWithTitle</span><span style="color: #000000;">:</span><span style="color: #c41a16;">@&#8221;Address Link&#8221;</span> <span style="color: #2e0d6e;">message</span><span style="color: #000000;">:</span><span style="color: #c41a16;">@&#8221;Sorry, no address book link available&#8221;</span> <span style="color: #2e0d6e;">delegate</span><span style="color: #000000;">:</span><span style="color: #aa0d91;">self</span> <span style="color: #2e0d6e;">cancelButtonTitle</span><span style="color: #000000;">:</span><span style="color: #aa0d91;">nil</span> <span style="color: #2e0d6e;">otherButtonTitles</span><span style="color: #000000;">:</span><span style="color: #c41a16;">@&#8221;OK&#8221;</span><span style="color: #000000;">, </span><span style="color: #aa0d91;">nil</span><span style="color: #000000;">];<br />
 [baseAlert </span><span style="color: #2e0d6e;">show</span><span style="color: #000000;">];<br />
 }<br />
 </span></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/17/iphone-sdk-contact-address-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone OS SDK &#8211; Checking Internet Reachability</title>
		<link>http://duivesteyn.net/2010/03/16/iphone-os-sdk-checking-internet-reachability/</link>
		<comments>http://duivesteyn.net/2010/03/16/iphone-os-sdk-checking-internet-reachability/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 10:45:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[internet reachability]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/03/16/iphone-os-sdk-checking-internet-reachability/</guid>
		<description><![CDATA[Checking for an internet connection is becoming an important part of each iPhone app, as applications and websites evolve to more a more unified experience, getting info off the internet is very important. Checking for an internet connection on iPhone can be a somewhat moderately difficult task. Luckily apple released a Reachability sample code, which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://duivesteyn.net/wp-content/uploads/2010/03/iphone1.png" rel="lightbox[528]"><img class="size-full wp-image-531 alignright" title="web-browsing-iphone" src="http://duivesteyn.net/wp-content/uploads/2010/03/iphone1.png" alt="" width="208" height="321" /></a>Checking for an internet connection is becoming an important part of each iPhone app, as applications and websites evolve to more a more unified experience, getting info off the internet is very important.<br />
 Checking for an internet connection on iPhone can be a somewhat moderately difficult task. Luckily apple released a <span style="text-decoration: underline;"><a href="http://developer.apple.com/iphone/library/samplecode/Reachability/">Reachability</a></span> sample code, which then makes implementation very easy.<br />
 Well, in line with the recent theme of my site, I’m going to show you how I implemented it in my programming experiences lately.<br />
 I’m going to run you through I how do this in my apps, with a focus on keeping it simple.</p>
<p><strong>Step 1: Add the reachability class from the <a href="http://developer.apple.com/iphone/library/samplecode/Reachability/">Reachability Demo</a></strong><br />
 Download them from the apple sample, or here. Then include them in your Xcode, by dragging the sources into xcode (Copying in is fine).</p>
<p><strong>Step 2: Add the Extra Frameworks</strong><br />
 Add the Foundation and SystemConfiguration inbuilt frameworks to your app.<br />
 <span style="font-size: 12pt;"><a href="http://duivesteyn.net/wp-content/uploads/2010/03/Screen-shot-2010-03-16-at-10.37.42.png" rel="lightbox[528]"><img src="http://duivesteyn.net/wp-content/uploads/2010/03/Screen-shot-2010-03-16-at-10.37.42.CaUeN2xcbHVT.jpg" alt="Screen-shot-2010-03-16-at-10.37.42.CaUeN2xcbHVT.jpg" width="213" height="35" /></a></span><br />
 <strong>Step 3: Think first then code</strong><br />
 <span style="font-size: 12pt;"><img class="alignright" src="http://duivesteyn.net/wp-content/uploads/2010/03/iPhone-Empty-View-Implemented-by-Tapku.D6WKcx9GiT7b.jpg" alt="iPhone-Empty-View-Implemented-by-Tapku.D6WKcx9GiT7b.jpg" width="192" height="276" /></span><br />
 The code is in the next step, but first its important to think where you are going to check for Internet Access. If you only need a particular site to work, change the initial ping to that one site. <a href="http://google.com">google.com</a>, <a href="http://finance.yahoo.com">finance.yahoo.com</a> etc.<br />
 econdly and more importantly, think about where you are going to implement the Reachability test. You will generally only want to do it once, in AppDelegate and then store the outcome as a boolean variable (YES/NO). If there ends up being multiple places in the application where you want to test for internet access, remember to do all the lookup business just once. This will speed up the app and also reduce app owners data transfer per session.<br />
 I am going to implement this such that a separate icon appears in the top right of my app MainView if there is no internet. Checkout the Three20 or Tapku empty pages, of how they implement the nice ‘empty’ screen which seems to be invented for iPhone by apple.</p>
<p><strong>Step 4: The easy bit: The Code</strong><br />
 I want to implement the reachability test in the appDelegate. First lets include the library in appDelegate.h (the header file).<br />
 <span style="color: #643820;">#import </span><span style="color: #c41a16;">&#8220;Reachability.h&#8221;</span></p>
<p>in the <span style="color: #aa0d91;">@interface</span> of the header:<br />
 <span style="color: #007400;">//Got Internets?</span><br />
 <span style="color: #5c2699;">NSString</span> *<span style="color: #3f6e74;">internetReachability</span>;<br />
 <span style="color: #aa0d91;">BOOL</span> <span style="color: #3f6e74;">gotInternet</span>;</p>
<p>and in the bottom of the header, before end:</p>
<p>-(<span style="color: #aa0d91;">BOOL</span>)checkInternet;</p>
<p>In the main of the appDelegate, we add a custom method to handle the work, it does most of the heavy lifting in the Reachability.m file. (Notice how the ping url is <a href="http://finance.yahoo.com">finance.yahoo.com</a>. I recommend pointing this to the website you are interested in interacting with.<br />
 <span style="color: #643820;">#pragma mark -<br />
 #pragma mark Checking Internet Connection<br />
 </span><br />
 -(<span style="color: #aa0d91;">BOOL</span>)checkInternet{<br />
 <span style="color: #007400;">//Test for Internet Connection</span><br />
 <span style="color: #2e0d6e;">NSLog</span>(<span style="color: #c41a16;">@“&#8212;&#8212;&#8211;“</span>);<span style="color: #2e0d6e;">NSLog</span>(<span style="color: #c41a16;">@“Testing Internet Connectivity”</span>);<br />
 <span style="color: #3f6e74;">Reachability</span> *r = [<span style="color: #3f6e74;">Reachability</span> <span style="color: #26474b;">reachabilityWithHostName</span>:<span style="color: #c41a16;">@“</span><a href="http://finance.yahoo.com">finance.yahoo.com</a><span style="color: #c41a16;">”</span>];<br />
 <span style="color: #3f6e74;">NetworkStatus</span> internetStatus = [r <span style="color: #26474b;">currentReachabilityStatus</span>];<br />
 <span style="color: #aa0d91;">BOOL</span> internet;<br />
 <span style="color: #aa0d91;">if</span> ((internetStatus != <span style="color: #26474b;">ReachableViaWiFi</span>) &amp;&amp; (internetStatus != <span style="color: #26474b;">ReachableViaWWAN</span>)) {<br />
 internet = <span style="color: #aa0d91;">NO</span>;<br />
 } <span style="color: #aa0d91;">else</span> {<br />
 internet = <span style="color: #aa0d91;">YES</span>;<br />
 }<br />
 <span style="color: #aa0d91;">return</span> internet;<br />
 }</p>
<p>This method is then able to be called where-ever, but I want to do it in didFinishLaunchingWithOptions. I use the following:<br />
 <span style="color: #3f6e74;">gotInternet</span> = [<span style="color: #aa0d91;">self</span> <span style="color: #26474b;">checkInternet</span>]; <span style="color: #007400;">//Test for Internet, calling the self method</span></p>
<p><span style="color: #aa0d91;">if</span> ( <span style="color: #3f6e74;">gotInternet</span> == <span style="color: #1c00cf;">0</span>) {<br />
 <span style="color: #007400;">//I have no internet</span><br />
 <span style="color: #2e0d6e;">NSLog</span>(<span style="color: #c41a16;">@&#8221;hey, i have no internets&#8221;</span>);<br />
 <span style="color: #3f6e74;">internetIcon</span>.<span style="color: #5c2699;">hidden</span> = <span style="color: #aa0d91;">NO</span>;</p>
<p>} <span style="color: #aa0d91;">else</span> {<br />
 <span style="color: #007400;">//I do have internet</span><br />
 <span style="color: #2e0d6e;">NSLog</span>(<span style="color: #c41a16;">@&#8221;hey, i have internets: all systems go&#8221;</span>);<br />
 }</p>
<p><strong>4. And thats it!</strong></p>
<p>Notice how it now stores the variable accessible class-wide. To check for internet now, just check to see the BOOL output of gotInternet. An extension to this is if there is no internet, show the Tapku empty window instead of something internet input related.</p>
<p>Heres the NSLog output, the second launch of the app I turned wifi on, on the mac.</p>
<p><a href="http://duivesteyn.net/wp-content/uploads/2010/03/post-internet-connection.png" rel="lightbox[528]"><img class="alignnone size-full wp-image-534" title="post - internet connection" src="http://duivesteyn.net/wp-content/uploads/2010/03/post-internet-connection.png" alt="" width="874" height="358" /></a></p>
<p><strong>Hope you found it useful, comments possible below.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/16/iphone-os-sdk-checking-internet-reachability/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>iPhone SDK &#8211; Implementing the Tapku Graph In your application</title>
		<link>http://duivesteyn.net/2010/03/07/iphone-sdk-implementing-the-tapku-graph-in-your-application/</link>
		<comments>http://duivesteyn.net/2010/03/07/iphone-sdk-implementing-the-tapku-graph-in-your-application/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 18:23:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[charting]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[takpu]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/03/07/iphone-sdk-implementing-the-tapku-graph-in-your-application/</guid>
		<description><![CDATA[One of the simpler and nicer available graph controllers your iPhone app is from the Tapku library. The tapku library is created by the team at http://tapku.com/ at hosted at http://github.com/devinross/tapkulibrary. The graph view controller I find as a good mix between a simple SparkLine (http://key-solutions.ca/cksparkline.html) and the full-on core-plot. Implementing the whole Tapku library [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://duivesteyn.net/wp-content/uploads/2010/03/Screen-shot-2010-03-08-at-10.28.02.png" rel="lightbox[510]"><img class="size-full wp-image-512 alignright" title="Tapku GraphController Screenshot" src="http://duivesteyn.net/wp-content/uploads/2010/03/Screen-shot-2010-03-08-at-10.28.02.png" alt="" width="277" height="149" /></a>One of the simpler and nicer available graph controllers your iPhone app is from the Tapku library. The tapku library is created by the team at <a href="http://tapku.com/">http://tapku.com/</a> at hosted at <a href="http://github.com/devinross/tapkulibrary">http://github.com/devinross/tapkulibrary</a>.</p>
<p>The graph view controller I find as a good mix between a simple SparkLine (<a href="http://key-solutions.ca/cksparkline.html">http://key-solutions.ca/cksparkline.html</a>) and the full-on <a href="http://code.google.com/p/core-plot/">core-plot</a>.</p>
<p>Implementing the whole Tapku library is overkill to just use the chart and in fact can be a little difficult for beginners too.</p>
<p>To implement the graph follow the following steps:</p>
<p><img class="alignright" src="http://duivesteyn.net/wp-content/uploads/2010/03/Screenshot2010-03-08at10.05.25.OmxZv34TWnLc.jpg" alt="Screenshot2010-03-08at10.05.25.OmxZv34TWnLc.jpg" width="185" height="240" /></p>
<p><strong>1.Copy the following files out of the Tapku Library and copy into your project:</strong></p>
<p><strong><span style="font-weight: normal;">GraphController.h &amp; GraphController.m<br />
 TKGraphController.h &amp; TKGraphController.m<br />
 TKGraphView.h &amp; TKGraphView.m<br />
 TKGlobal.h &amp; TKGlobal.m<br />
 UIImageAdditions.h &amp; UIImageAdditions.m<br />
 UIViewAdditions.h &amp; UIImageAdditions.m<br />
 TapkuLibrary.bundle (for the graphics)</span></strong></p>
<p><strong><span style="font-weight: normal;"><strong>2. Add the framework QuartzCore</strong></span></strong></p>
<p><span style="color: #643820;"><span style="font-size: small;">#import </span></span><span style="color: #c41a16;"><span style="font-size: small;">&lt;QuartzCore/QuartzCore.h&gt;</span></span></p>
<p><span style="color: #c41a16;"><span style="font-size: small;"><br />
 </span></span></p>
<p><span style="font-size: 14pt; color: #c41a16;"> <span style="color: #000000; font-size: 13px;"><strong>3. In GraphController.h, remove the line to import the full Tapku Library and import TKGraphController.h and TKGraphView.h.</strong> </span></span></p>
<p><span style="font-size: 14pt; color: #c41a16;"><span style="color: #000000; font-size: 13px;">Alter GraphController.h to:</span><br />
 </span></p>
<p><span style="color: #007400;"><span style="font-size: small;">//#import &lt;TapkuLibrary/TapkuLibrary.h&gt;</span></span><span style="font-size: small;"><br />
 </span> <span style="color: #643820;"><span style="font-size: small;">#import </span></span><span style="color: #c41a16;"><span style="font-size: small;">&#8220;TKGraphController.h&#8221;</span></span><span style="font-size: small;"><br />
 </span> <span style="color: #643820;"><span style="font-size: small;">#import </span></span><span style="color: #c41a16;"><span style="font-size: small;">&#8220;TKGraphView.h&#8221;</span></span></p>
<p><span style="color: #c41a16;"><span style="font-size: small;"><br />
 </span></span></p>
<p><strong> ￼4. Now to call the graph, we display it as a modal view controller. Use the following code in your project to push the view onto the screen:</strong></p>
<p><span style="color: #643820;"><span style="font-size: small;">In your header file add:<br />
 #import </span></span><span style="color: #c41a16;"><span style="font-size: small;">&#8220;GraphController.h&#8221;</span></span></p>
<p>In the main add</p>
<p><span style="font-size: small;"> </span><span style="font-size: small;"> </span><span style="color: #5c2699;"><span style="font-size: small;">UIViewController</span></span><span style="font-size: small;"> </span><span style="font-size: small;">*vc = [[</span><span style="color: #3f6e74;"><span style="font-size: small;">GraphController</span></span><span style="font-size: small;"> </span><span style="font-size: small;"> </span><span style="color: #2e0d6e;"><span style="font-size: small;">alloc</span></span><span style="font-size: small;">] </span><span style="color: #2e0d6e;"><span style="font-size: small;">init</span></span><span style="font-size: small;">];</span></p>
<p>[vc <span style="color: #2e0d6e;"><span style="font-size: small;">setModalTransitionStyle</span></span><span style="font-size: small;">:</span><span style="color: #2e0d6e;"><span style="font-size: small;">UIModalTransitionStyleCrossDissolve</span></span><span style="font-size: small;">];<br />
 [</span><span style="color: #aa0d91;"><span style="font-size: small;">self</span></span><span style="font-size: small;"> </span><span style="font-size: small;"> </span><span style="color: #2e0d6e;"><span style="font-size: small;">presentModalViewController</span></span><span style="font-size: small;">:vc </span><span style="color: #2e0d6e;"><span style="font-size: small;">animated</span></span><span style="font-size: small;">:</span><span style="color: #aa0d91;"><span style="font-size: small;">YES</span></span><span style="font-size: small;">];<br />
 [vc </span><span style="color: #2e0d6e;"><span style="font-size: small;">release</span></span><span style="font-size: small;">];<br />
 </span><span style="color: #aa0d91;"><span style="font-size: small;">return</span></span><span style="font-size: small;">;</span></p>
<p><span style="font-size: small;"><br />
 </span></p>
<p><strong>And thats it!</strong></p>
<p>I have a sample xcode project available too.</p>
<table border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td><a href="http://duivesteyn.net/wp-content/uploads/2010/03/TapkuGraphOnly.zip"><img title="Takpu GraphView Only xcode title icon" src="http://duivesteyn.net/wp-content/uploads/2010/03/Screen-shot-2010-03-08-at-10.39.11.png" alt="" width="300" height="128" /></a></td>
<td><a href="http://github.com/duivesteyn-enterprises/takpuGraphOnly"><img class="alignnone size-full wp-image-519" title="github" src="http://duivesteyn.net/wp-content/uploads/2010/03/github.png" alt="" width="120" height="60" /></a><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 13px; line-height: 19px;">￼</span></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/07/iphone-sdk-implementing-the-tapku-graph-in-your-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneOS iPad Development Resources</title>
		<link>http://duivesteyn.net/2010/03/04/iphoneos-ipad-development-resources/</link>
		<comments>http://duivesteyn.net/2010/03/04/iphoneos-ipad-development-resources/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:00:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=488</guid>
		<description><![CDATA[Code General Cocoa Programming Resources http://www.idev101.com/ http://developer.apple.com/iphone/library/navigation/index.html When in Trouble Developer Documentation Google StackOverflow Forums&#8230; My Favorite Libraries Core Plot &#8211; Graphing Library Three20 &#8211; The Famous Library with all the Facebook&#8217;y goodness Tapku Library &#8211; An awesome set of tools &#8211; Nice Plot, Calendars, Loading HUD, EmptyView Flurry &#8211; Awesome App Analytics CKSparkLine &#8211; [...]]]></description>
			<content:encoded><![CDATA[<h2 style="text-align: center;"><img title="Tapku Library" src="http://duivesteyn.net/wp-content/uploads/2010/03/4175733982_f168ea3bd1_o.png" alt="" width="629" height="292" /></h2>
<h2><span style="font-weight: normal; font-size: 13px;"> </span>Code</h2>
<p><strong>General Cocoa Programming Resources</strong></p>
<ul>
<li><a href="http://www.idev101.com/" target="_blank">http://www.idev101.com/</a></li>
<li><a href="http://developer.apple.com/iphone/library/navigation/index.html" target="_blank">http://developer.apple.com/iphone/library/navigation/index.html</a></li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>When in Trouble</strong></p>
<ul>
<li><a href="http://developer.apple.com/iphone/library/navigation/index.html" target="_blank">Developer Documentation</a></li>
<li>Google</li>
<li><a href="http://StackOverflow.com" target="_blank">StackOverflow</a></li>
<li>Forums&#8230;</li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>My Favorite Libraries</strong></p>
<ul>
<li><a href="http://code.google.com/p/core-plot/" target="_blank">Core Plot</a> &#8211; Graphing Library</li>
<li><a href="http://github.com/facebook/three20" target="_blank">Three20</a> &#8211; The Famous Library with all the Facebook&#8217;y goodness</li>
<li><a href="http://github.com/devinross/tapkulibrary" target="_parent">Tapku Library</a> &#8211; An awesome set of tools &#8211; Nice Plot, Calendars, Loading HUD, EmptyView</li>
<li><a href="http://www.flurry.com/" target="_blank">Flurry</a> &#8211; Awesome App Analytics</li>
<li><a href="http://key-solutions.ca/cksparkline.html" target="_blank">CKSparkLine</a> &#8211; Basic Line Graph in a View</li>
<li><a href="http://github.com/arashpayan/appirater/" target="_blank">AppiRater</a> &#8211; Add App Rating Reminder</li>
<li><a href="http://apparentlogic.com/openflow/" target="_blank">Open Flow</a> &#8211; Open Implementation of cover flow</li>
<li><a href="http://bitbucket.org/keegan3d/inappsettings" target="_blank">InAppSettings</a> &#8211; Include app settings inside the app easily</li>
<li><a href="http://regexkit.sourceforge.net/" target="_blank">RegExKit</a> &#8211; Objective-C Goodness</li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>Address Book Integration</strong></p>
<ul>
<li><a href="http://developer.apple.com/iphone/library/documentation/AddressBookUI/Reference/AddressBookUI_Framework/index.html" target="_blank">apple developer UI Framework</a></li>
<li><a href="http://dougdiego.com/2009/06/12/iphone-development-helper-fill-up-your-address-book/" target="_blank">Fill up iPhone Simulator with test contacts</a></li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>Email Integration</strong></p>
<ul>
<li><a href="http://developer.apple.com/iphone/library/samplecode/MailComposer/index.html">Apple Developer Sample Code</a></li>
<li><a href="http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/" target="_blank">http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/</a></li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>Useful Code</strong></p>
<ul>
<li>NSNotifications -<a href=" http://hackertoys.com/2008/10/01/nsnotificationcenter/" target="_blank"> http://hackertoys.com/2008/10/01/nsnotificationcenter/</a></li>
</ul>
<p><br class="spacer_" /></p>
<h2>UI</h2>
<p><strong>UITableView Pretty Section Titles</strong></p>
<ul>
<li><a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/5172-font-size-color-tableview-header.html">http://www.iphonedevsdk.com/forum/iphone-sdk-development/5172-font-size-color-tableview-header.html</a></li>
<li><a href="http://iphoneinaction.manning.com/iphone_in_action/2009/07/beauti.html">http://iphoneinaction.manning.com/iphone_in_action/2009/07/beauti.html</a></li>
</ul>
<p><br class="spacer_" /></p>
<p><strong>Design</strong></p>
<ul>
<li>Photoshop Setup for iPhone <a href="http://bjango.com/articles/photoshop/" target="_blank">http://bjango.com/articles/photoshop/</a></li>
</ul>
<p><br class="spacer_" /></p>
<h2>Sales</h2>
<p><strong>Application Sales Metrics</strong></p>
<ul>
<li><a href="http://github.com/omz/AppSales-Mobile" target="_blank">AppSalesMobile</a> &#8211; Open iTunes Connect Data Retriever for iPhone </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/04/iphoneos-ipad-development-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone/iPad Development &#8211; Screen Rotation Resizing</title>
		<link>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/</link>
		<comments>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 08:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphoneOS]]></category>
		<category><![CDATA[resizing]]></category>
		<category><![CDATA[rotation]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=483</guid>
		<description><![CDATA[There comes a time in many apps where the screen will be rotated and the view will resize to the new screen layout. This will be even more important when it comes to the iPad which recommends that the app is usable on all different orientations. On rotation, I call a method that then goes [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-484 alignright" title="FullScreenIPhone_rotation_bars" src="http://duivesteyn.net/wp-content/uploads/2010/03/FullScreenIPhone_rotation_bars.jpg" alt="" width="236" height="190" /></p>
<p>There comes a time in many apps where the screen will be rotated and the view will resize to the new screen layout. This will be even more important when it comes to the iPad which recommends that the app is usable on all different orientations.</p>
<p>On rotation, I call a method that then goes and tediously shuffles the frames of all my onscreen items for landscape, and then it needs to be done again when going back to portrait. (There should be a class out there somewhere which automates all this).</p>
<p>The important part is getting the X,Y,Width,Height data of all the frames of the objects and I have lately adapted code to generate the following:</p>
<p><code><strong> if ([[self.view subviews] count] &amp;gt; 0) { &lt;br /&gt;<br />
NSLog(@"Enumerating Subview Details\n%@",[self.view subviews]); &lt;br /&gt;<br />
} </strong></p>
<p>&lt;p&gt;What is does is print (to NSLog) a list of all the subviews in the main view. It makes getting the frame X,Y,W,H data much faster. Hope it helps!&lt;/p&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone UI &#8211; About Page Trends &amp; Roundup</title>
		<link>http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/</link>
		<comments>http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 07:55:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=474</guid>
		<description><![CDATA[iPhone about pages have become an art in theirselves. Below is a roundup of all the ones I&#8217;ve found interesting&#8230;More added as they come.]]></description>
			<content:encoded><![CDATA[<p>iPhone about pages have become an art in theirselves. Below is a roundup of all the ones I&#8217;ve found interesting&#8230;More added as they come.</p>
<p><img title="gallery link=&quot;file&quot;" src="http://duivesteyn.net/wp-includes/js/tinymce/plugins/wpgallery/img/t.gif" alt="" /></p>

<a href='http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/img_0570/' title='Tea Round About Page'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0570-150x150.png" class="attachment-thumbnail" alt="Tea Round About Page" title="Tea Round About Page" /></a>
<a href='http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/img_0554/' title='iStudiez About Page'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0554-150x150.png" class="attachment-thumbnail" alt="iStudiez About Page" title="iStudiez About Page" /></a>
<a href='http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/img_0569/' title='Tea Round About Page2'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0569-150x150.png" class="attachment-thumbnail" alt="Tea Round About Page2" title="Tea Round About Page2" /></a>

]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/02/iphone-ui-about-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Simple iPhone UI Elements</title>
		<link>http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/</link>
		<comments>http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:33:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=463</guid>
		<description><![CDATA[I&#8217;ve been a little busy lately and have some ideas queued up but I havent had the chance to post much. Today something quick. When developing my first app, I had some simple questions I could only answer by looking at what apps already do. Questions like &#8220;How is a single text field and keyboard [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a little busy lately and have some ideas queued up but I havent had the chance to post much. Today something quick.</p>
<p>When developing my first app, I had some simple questions I could only answer by looking at what apps already do. Questions like &#8220;How is a single text field and keyboard on a page displayed to the user? How is a date best added/altered in a view? How can I enter in a full sized textbox for the user to enter a note? Insipration Source: Things from Cultured Code. They use some basic iPhone UI elements, but its just done so well.</p>

<a href='http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/img_0550/' title='Date Entry'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0550-150x150.png" class="attachment-thumbnail" alt="The date entry page in Things - Simple and effective" title="Date Entry" /></a>
<a href='http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/img_0551/' title='IMG_0551'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0551-150x150.png" class="attachment-thumbnail" alt="Textfield Entry box in Things - Again simple and effective." title="IMG_0551" /></a>
<a href='http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/img_0552/' title='Notes Page Layout'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/03/IMG_0552-150x150.png" class="attachment-thumbnail" alt="Things textview layout. Notice how perfectly the page is filled." title="Notes Page Layout" /></a>

]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/01/some-simple-iphone-ui-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone OS Development &#8211; deSimpleChart</title>
		<link>http://duivesteyn.net/2010/02/20/iphone-desimplechart/</link>
		<comments>http://duivesteyn.net/2010/02/20/iphone-desimplechart/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 20:41:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[plot]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=449</guid>
		<description><![CDATA[Throughout my current project I&#8217;ve been looking for a simple chart that I can place inside my iPhone Application. There is the best framework around core-plot, but I found is extremely complicated and a little unmanageable for experienced programmers. I then came across CKSparkLine which is a fantastic and simple way of plotting an array [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-thumbnail wp-image-451 alignright" style="border: 2px solid black;" title="deChart" src="http://duivesteyn.net/wp-content/uploads/2010/02/deChart-150x150.png" alt="iPhone SDK Simple Charting Class" width="150" height="150" /></p>
<p>Throughout my current project I&#8217;ve been looking for a simple chart that I can place inside my iPhone Application. There is the best framework around <a href="http://code.google.com/p/core-plot/" target="_blank">core-plot</a>, but I found is extremely complicated and a little unmanageable for experienced programmers. I then came across <a href="http://key-solutions.ca/cksparkline.html" target="_blank">CKSparkLine</a> which is a fantastic and simple way of plotting an array of data to a uiview.</p>
<p>In my work I have lead to a slightly adapted CKSparkLine which would be useful enough to help someone else who wants a simple chart plot in an iPhone App.</p>
<p>Introducing the sample code: deSimpleChart. A &#8216;simple&#8217; chart plot based  off CKSparkLine to help a programmer new to iPhone development out. Below a screenshot of the complete output of the application. Keeping the idea simple and easy to learn from.</p>
<p style="text-align: center;"><img class="size-full wp-image-450 aligncenter" title="Screen shot 2010-02-20 at 21.05.29" src="http://duivesteyn.net/wp-content/uploads/2010/02/Screen-shot-2010-02-20-at-21.05.29.png" alt="" width="539" height="290" /></p>
<p><br class="spacer_" /></p>
<p><strong>deSimpleChart 0.01  <br />
 <span style="font-weight: normal;">Build &#8220;Keeping charts simple&#8221;</span></strong></p>
<p><a href="http://duivesteyn.net/wp-content/uploads/2010/02/Screen-shot-2010-02-20-at-22.19.56.png" rel="lightbox[449]"><img class="alignnone size-full wp-image-457" title="de Simple Chart Icon" src="http://duivesteyn.net/wp-content/uploads/2010/02/Screen-shot-2010-02-20-at-22.19.56.png" alt="" width="373" height="161" /></a></p>
<p>Download at <a href="http://github.com/duivesteyn-enterprises/deSimpleChart" target="_blank">Github</a><br />
-&gt;&#8221;git clone git://github.com/duivesteyn-enterprises/deSimpleChart.git&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/02/20/iphone-desimplechart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
