<?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; ipad</title>
	<atom:link href="http://duivesteyn.net/tag/ipad/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>iPhoneOS SDK &#8211; iPad Design Template &#8211; Multiple Views with Group Table View as the Master View Controller</title>
		<link>http://duivesteyn.net/2010/04/21/iphoneos-sdk-ipad-design-template-multiple-views-with-group-table-view-as-the-master-view-controller/</link>
		<comments>http://duivesteyn.net/2010/04/21/iphoneos-sdk-ipad-design-template-multiple-views-with-group-table-view-as-the-master-view-controller/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 22:00:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[Grouped]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Splitview]]></category>
		<category><![CDATA[UITableView]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/15/iphoneos-sdk-ipad-design-template-multiple-views-with-group-table-view-as-the-master-view-controller/</guid>
		<description><![CDATA[Here’s my favorite iPad Project Template. Modified for 6 view controllers, split view, master tableview uses sections, and is in group format!]]></description>
			<content:encoded><![CDATA[<p>Here’s my favorite iPad Project Template. Modified for 6 view controllers, split view, master tableview uses sections, and is in group format!</p>
<p><a href="http://duivesteyn.net/wp-content/uploads/2010/04/iPad-Empty-Project-1-6-View-Controllers-on-the-Left-working.zip"><img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-14at18.03.13.kPF6RWxDwfm2.jpg" alt="Screenshot2010-04-14at18.03.13.kPF6RWxDwfm2.jpg" width="674" height="568" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/21/iphoneos-sdk-ipad-design-template-multiple-views-with-group-table-view-as-the-master-view-controller/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhoneOS SDK &#8211; iPad Popover Controller</title>
		<link>http://duivesteyn.net/2010/04/19/iphone-sdk-ipad-popover-controller/</link>
		<comments>http://duivesteyn.net/2010/04/19/iphone-sdk-ipad-popover-controller/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 07:00:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphoneOS]]></category>
		<category><![CDATA[popover]]></category>
		<category><![CDATA[popovercontroller]]></category>
		<category><![CDATA[sample-code]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/14/iphoneos-sdk-ipad-popover-controller-2/</guid>
		<description><![CDATA[The iPad Popover control is possibly the least publicized feature of the iPhoneOS SDK, but becomes critical to in app actions and workflows. This is because the Popover Controller can show a small UIView of controls and more importantly save the user from having the whole screen change navigation hierarchy. A simple popover for example, [...]]]></description>
			<content:encoded><![CDATA[<p><br class="spacer_" /></p>
<p><span style="font-size: small;"><a href="http://duivesteyn.net/wp-content/uploads/2010/04/ipad-take-photo-sdk.jpg" rel="lightbox[646]"><img class="size-medium wp-image-651 alignright" title="ipad-take-photo-sdk" src="http://duivesteyn.net/wp-content/uploads/2010/04/ipad-take-photo-sdk-300x227.jpg" alt="" width="300" height="227" /></a><a href="http://duivesteyn.net/wp-content/uploads/2010/04/ipad-take-photo-sdk.jpg" rel="lightbox[646]"><span style="color: #000000; -webkit-text-decorations-in-effect: none;">The iPad Popover control is possibly the least publicized feature of the iPhoneOS SDK, but becomes critical to in app actions and workflows. This is because the Popover Controller can show a small UIView of controls and more importantly save the user from having the whole screen change navigation hierarchy. A simple popover for example, can be used to edit a textfield, or change a date really quickly. In an iPhone app, this would typically be done by sending the user to a &#8216;DetailView&#8217; where the setting/property can be change, whereas on the iPad this is highly discouraged.</span></a> I am going to go through a quick popover example today, and on monday I will post a fantastic iPad user template.</span></p>
<p><strong><span style="font-size: small;">1. Understanding the context</span></strong><span style="font-size: small;"><br />
 First, you need to know where a popover should be used. I can&#8217;t say much more than whats above. Use the apple apps, use the other top 100 apps, see how they use the popover controller. This will give you a feel of what it should do.<br />
 </span> <strong><span style="font-size: small;">2. Some Code</span></strong><span style="font-size: small;"><br />
 Firstly, your main view controller {.h} needs a &lt;UIPopoverControllerDelegate&gt; declaration.<br />
 In your main view controller, add the following to the @interface (.h file)</span></p>
<p><span style="font-size: small;"> </span><span style="font-size: small;"> </span><span style="color: #007400;"><span style="font-size: small;">//PopoverViewController</span></span><span style="font-size: small;"><br />
 </span><span style="font-size: small;"> </span><span style="color: #5c2699;"><span style="font-size: small;">UIPopoverController</span></span><span style="font-size: small;"> </span><span style="font-size: small;">*</span><span style="color: #3f6e74;"><span style="font-size: small;">popoverController</span></span><span style="font-size: small;">;</span></p>
<p><span style="font-size: small;">and just before @end add an IBAction:<br />
 </span> <span style="font-size: small;">- (</span><span style="color: #aa0d91;"><span style="font-size: small;">IBAction</span></span><span style="font-size: small;">)popOverViewCall:(</span><span style="color: #aa0d91;"><span style="font-size: small;">id</span></span><span style="font-size: small;">)sender;</span></p>
<p><span style="font-size: small;">Create a New View &amp; ViewController {.h/.m} files and place them in your project. This is the actual popover that will come up. Place controls how ever you see fit.  I call this popover controller MyViewControllerForPopover. Add an include of this file to your main view controller, eg:<br />
 </span> <span style="color: #643820;"><span style="font-size: small;">#import </span></span><span style="color: #c41a16;"><span style="font-size: small;">&#8220;FirstDetailViewControllerPopOverControl.h&#8221;</span></span></p>
<p><span style="font-size: small;">In MyViewControllerForPopop {.m file}, add the following code:<br />
 </span> <span style="font-size: small;">-(</span><span style="color: #aa0d91;"><span style="font-size: small;">void</span></span><span style="font-size: small;">)viewDidAppear:(</span><span style="color: #aa0d91;"><span style="font-size: small;">BOOL</span></span><span style="font-size: small;">)animated<br />
 {<br />
 </span><span style="color: #aa0d91;"><span style="font-size: small;">self</span></span><span style="font-size: small;">.</span><span style="color: #5c2699;"><span style="font-size: small;">contentSizeForViewInPopover</span></span><span style="font-size: small;"> </span><span style="font-size: small;">= </span><span style="color: #2e0d6e;"><span style="font-size: small;">CGSizeMake</span></span><span style="font-size: small;">(</span><span style="color: #1c00cf;"><span style="font-size: small;">320</span></span><span style="font-size: small;">,</span><span style="color: #1c00cf;"><span style="font-size: small;">320</span></span><span style="font-size: 14pt;"><span style="font-size: small;">);</span></span></p>
<p>}<br />
 <span style="font-size: small;">This sets the size of the popover for showing.Go into interface builder and add a couple controls to ensure you know when it works.<br />
 And finally in your main view controller {.m file}, add the IBAction:</span></p>
<p><span style="font-size: small;">-(</span><span style="color: #aa0d91;"><span style="font-size: small;">IBAction</span></span><span style="font-size: small;">)popOverViewCall:(</span><span style="color: #aa0d91;"><span style="font-size: small;">id</span></span><span style="font-size: small;">)sender{<br />
 </span><span style="color: #3f6e74;"><span style="font-size: small;">FirstDetailViewControllerPopOverControl</span></span><span style="font-size: small;"> </span><span style="font-size: small;">*myViewControllerForPopover = [[</span><span style="color: #3f6e74;"><span style="font-size: small;">FirstDetailViewControllerPopOverControl</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;">initWithNibName</span></span><span style="font-size: small;">:</span><span style="color: #c41a16;"><span style="font-size: small;">@&#8221;FirstDetailViewControllerPopOverControl&#8221;</span></span><span style="font-size: small;"> </span><span style="font-size: small;"> </span><span style="color: #2e0d6e;"><span style="font-size: small;">bundle</span></span><span style="font-size: small;">:</span><span style="color: #aa0d91;"><span style="font-size: small;">nil</span></span><span style="font-size: small;"> </span><span style="font-size: small;">];<br />
 </span><span style="color: #5c2699;"><span style="font-size: small;">UIPopoverController</span></span><span style="font-size: small;"> </span><span style="font-size: small;">*popover = [[</span><span style="color: #5c2699;"><span style="font-size: small;">UIPopoverController</span></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;">initWithContentViewController</span></span><span style="font-size: 14pt;"><span style="font-size: small;">:myViewControllerForPopover];<br />
 </span> </span><span style="color: #aa0d91;"><span style="font-size: small;">self</span></span><span style="font-size: small;">.</span><span style="color: #3f6e74;"><span style="font-size: small;">popoverController</span></span><span style="font-size: small;"> </span><span style="font-size: 14pt;"><span style="font-size: small;">= popover;<br />
 </span> </span><span style="color: #3f6e74;"><span style="font-size: small;">popoverController</span></span><span style="font-size: small;">.</span><span style="color: #5c2699;"><span style="font-size: small;">delegate</span></span><span style="font-size: small;"> </span><span style="font-size: small;">= </span><span style="color: #aa0d91;"><span style="font-size: small;">self</span></span><span style="font-size: small;">;</span></p>
<p>[popover <span style="color: #2e0d6e;"><span style="font-size: small;">release</span></span><span style="font-size: small;">];<br />
 [myViewControllerForPopover </span><span style="color: #2e0d6e;"><span style="font-size: small;">release</span></span><span style="font-size: small;">];</span></p>
<p><span style="color: #5c2699;"><span style="font-size: small;">CGPoint</span></span><span style="font-size: small;"> </span><span style="font-size: small;">point = {</span><span style="color: #1c00cf;"><span style="font-size: small;">200</span></span><span style="font-size: small;">,</span><span style="color: #1c00cf;"><span style="font-size: small;">200</span></span><span style="font-size: small;">}; </span><span style="color: #007400;"><span style="font-size: small;">// Place to put on screen</span></span><span style="font-size: small;"><br />
 </span><span style="color: #5c2699;"><span style="font-size: small;">CGSize</span></span><span style="font-size: small;"> </span><span style="font-size: small;">size = {</span><span style="color: #1c00cf;"><span style="font-size: small;">600</span></span><span style="font-size: small;">,</span><span style="color: #1c00cf;"><span style="font-size: small;">600</span></span><span style="font-size: small;">}; </span><span style="color: #007400;"><span style="font-size: small;">// A content range (see apple docs)</span></span><span style="font-size: small;"><br />
 </span><span style="font-size: small;">[</span><span style="color: #3f6e74;"><span style="font-size: small;">popoverController</span></span><span style="font-size: small;"> </span><span style="color: #2e0d6e;"><span style="font-size: small;">presentPopoverFromRect</span></span><span style="font-size: small;">:</span><span style="color: #2e0d6e;"><span style="font-size: small;">CGRectMake</span></span><span style="font-size: small;">(point.</span><span style="color: #5c2699;"><span style="font-size: small;">x</span></span><span style="font-size: small;">, point.</span><span style="color: #5c2699;"><span style="font-size: small;">y</span></span><span style="font-size: small;">, size.</span><span style="color: #5c2699;"><span style="font-size: small;">width</span></span><span style="font-size: small;">, size.</span><span style="color: #5c2699;"><span style="font-size: small;">height</span></span><span style="font-size: small;">)<br />
 </span><span style="color: #2e0d6e;"><span style="font-size: small;">inView</span></span><span style="font-size: small;">:</span><span style="color: #aa0d91;"><span style="font-size: small;">self</span></span><span style="font-size: small;">.</span><span style="color: #5c2699;"><span style="font-size: small;">view</span></span><span style="font-size: small;"> </span><span style="color: #2e0d6e;"><span style="font-size: small;">permittedArrowDirections</span></span><span style="font-size: small;">:</span><span style="color: #2e0d6e;"><span style="font-size: small;">UIPopoverArrowDirectionAny</span></span><span style="font-size: small;"> </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: 14pt;"><span style="font-size: small;">];</span></span></p>
<p>}<br />
 <span style="font-size: small;"><br />
 Add a button on your main view controller to call the IBAction. That covers it! One of the new features in iPhoneOS3.2 for iPad. See the screenshots for how it should look, code is downloadable below.</span></p>
<p><img class="size-medium wp-image-654    alignleft" title="Screen shot 2010-04-13 at 19.12.00" src="http://duivesteyn.net/wp-content/uploads/2010/04/Screen-shot-2010-04-13-at-19.12.00-235x300.png" alt="" width="235" height="300" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><span style="font-size: xx-small;"><span style="font-size: small;"><span><br />
</span></span></span></p>
<p><br class="spacer_" /></p>
<table border="0" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td><a href="http://duivesteyn.net/wp-content/uploads/2010/04/de-iPad-Popover-Sample.zip"><img class="alignnone size-full wp-image-652" title="iPad Popover Sample Download Xcode Project Tutorial" src="http://duivesteyn.net/wp-content/uploads/2010/04/Screen-shot-2010-04-14-at-10.50.41.png" alt="" width="247" height="125" /></a></td>
<td><a href="http://github.com/duivesteyn-net/iPad-Popover-Sample"><img title="Gitub Sample Code Hosting" src="http://duivesteyn.net/wp-content/uploads/2010/03/github.png" alt="" width="120" height="60" /></a>￼</td>
</tr>
</tbody>
</table>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/19/iphone-sdk-ipad-popover-controller/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone OS SDK &#8211; Tableview Text and Subtitle with Image using Indent</title>
		<link>http://duivesteyn.net/2010/04/06/iphone-os-sdk-tableview-text-and-subtitle-with-image-using-indent/</link>
		<comments>http://duivesteyn.net/2010/04/06/iphone-os-sdk-tableview-text-and-subtitle-with-image-using-indent/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 07:00:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[tableview]]></category>
		<category><![CDATA[uiimageview]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/01/iphone-os-sdk-tableview-text-and-subtitle-with-image-using-indent/</guid>
		<description><![CDATA[Today I am posting something small which adds a great touch to a UITableViewCell. I would like to show you how to add an image to the left of a tableview cell, in the minimum amount of code (realistically) possible. Firstly I am using the TableViewStyle UITableViewCellStyleSubtitle Which is great for a main row of [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 12pt;">Today I am posting something small which adds a great touch to a UITableViewCell. I would like to show you how to add an image to the left of a tableview cell, in the minimum amount of code (realistically) possible.</p>
<p>Firstly I am using the TableViewStyle </span><span style="color: rgb(46,13,110);">UITableViewCellStyleSubtitle </span><span style="font-size: 12pt;">Which is great for a main row of text and a smaller row of text underneath.</p>
<p><strong>UITableViewCellStyleSubtitle &#8211; Subtitle Row Style</strong></p>
<p>First the visual output:<br />
<img src="http://duivesteyn.net/wp-content/uploads/2010/04/Screenshot2010-04-01at20.18.37.gA30siNRxbKg.jpg" alt="Screenshot2010-04-01at20.18.37.gA30siNRxbKg.jpg" width="287" height="268" /></p>
<p>and the code:</p>
<p></span>- (<span style="color: rgb(92,38,153);">UITableViewCell</span> *)tableView:(<span style="color: rgb(92,38,153);">UITableView</span> *)<span style="color: rgb(92,38,153);">tableView</span> cellForRowAtIndexPath:(<span style="color: rgb(92,38,153);">NSIndexPath</span> *)indexPath {</p>
<p>    <span style="color: rgb(170,13,145);">static</span> <span style="color: rgb(92,38,153);">NSString</span> *CellIdentifier = <span style="color: rgb(196,26,22);">@&#8221;CellIdentifier&#8221;</span>;</p>
<p>    <span style="color: rgb(0,116,0);">// Dequeue or create a cell of the appropriate type.</span><br />
    <span style="color: rgb(92,38,153);">UITableViewCell</span> *cell = [<span style="color: rgb(92,38,153);">tableView</span> <span style="color: rgb(46,13,110);">dequeueReusableCellWithIdentifier</span>:CellIdentifier];<br />
    <span style="color: rgb(170,13,145);">if</span> (cell == <span style="color: rgb(170,13,145);">nil</span>) {<br />
        cell = [[[<span style="color: rgb(92,38,153);">UITableViewCell</span> <span style="color: rgb(46,13,110);">alloc</span>] <span style="color: rgb(46,13,110);">initWithStyle</span>:<span style="color: rgb(46,13,110);">UITableViewCellStyleSubtitle</span> <span style="color: rgb(46,13,110);">reuseIdentifier</span>:CellIdentifier] <span style="color: rgb(46,13,110);">autorelease</span>];</p>
<p>}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">detailTextLabel</span>.<span style="color: rgb(92,38,153);">text</span> = tempName;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">textLabel</span>.<span style="color: rgb(92,38,153);">text</span> = tempProject;</p>
<p>}</p>
<p><span style="font-size: 12pt;">But I would like to add an image to the left side. In the past I have Created three custom views ontop of each cell, and then for each cell, set a number of properties and inserted the text/image. This was all created and deallocated automatically. </p>
<p>I have found an even simpler way to do all of this. It uses the fantastic property ‘</span><span style="color: rgb(92,38,153);">indentationWidth</span><span style="font-size: 12pt;">’</p>
<p><strong>UITableViewCellStyleSubtitle &#8211; Subtitle Row Style with Image</p>
<p></strong>First the output pic:</p>
<p><img src="http://duivesteyn.net/wp-content/uploads/2010/04/ss2.tCfIZR4wjSgz.jpg" alt="ss2.tCfIZR4wjSgz.jpg" width="320" height="334" /></p>
<p>And the code:</p>
<p></span>- (<span style="color: rgb(92,38,153);">UITableViewCell</span> *)tableView:(<span style="color: rgb(92,38,153);">UITableView</span> *)<span style="color: rgb(92,38,153);">tableView</span> cellForRowAtIndexPath:(<span style="color: rgb(92,38,153);">NSIndexPath</span> *)indexPath {</p>
<p>    <span style="color: rgb(170,13,145);">static</span> <span style="color: rgb(92,38,153);">NSString</span> *CellIdentifier = <span style="color: rgb(196,26,22);">@&#8221;CellIdentifier&#8221;</span>;</p>
<p>    <span style="color: rgb(0,116,0);">// Dequeue or create a cell of the appropriate type.</span><br />
    <span style="color: rgb(92,38,153);">UITableViewCell</span> *cell = [<span style="color: rgb(92,38,153);">tableView</span> <span style="color: rgb(46,13,110);">dequeueReusableCellWithIdentifier</span>:CellIdentifier];<br />
    <span style="color: rgb(170,13,145);">if</span> (cell == <span style="color: rgb(170,13,145);">nil</span>) {<br />
        cell = [[[<span style="color: rgb(92,38,153);">UITableViewCell</span> <span style="color: rgb(46,13,110);">alloc</span>] <span style="color: rgb(46,13,110);">initWithStyle</span>:<span style="color: rgb(46,13,110);">UITableViewCellStyleSubtitle</span> <span style="color: rgb(46,13,110);">reuseIdentifier</span>:CellIdentifier] <span style="color: rgb(46,13,110);">autorelease</span>];<br />
        cell.<span style="color: rgb(92,38,153);">accessoryType</span> = <span style="color: rgb(46,13,110);">UITableViewCellAccessoryDisclosureIndicator</span>;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">selectionStyle</span> = <span style="color: rgb(46,13,110);">UITableViewCellSelectionStyleBlue</span>;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(0,116,0);">//Indentation Code.</span><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">indentationLevel</span> = <span style="color: rgb(28,0,207);">1</span>;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">indentationWidth</span> = 30;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(92,38,153);">CGRect</span> frame; frame.<span style="color: rgb(92,38,153);">origin</span>.<span style="color: rgb(92,38,153);">x</span> = <span style="color: rgb(28,0,207);">5</span>; frame.<span style="color: rgb(92,38,153);">origin</span>.<span style="color: rgb(92,38,153);">y</span> = <span style="color: rgb(28,0,207);">5</span>; frame.<span style="color: rgb(92,38,153);">size</span>.<span style="color: rgb(92,38,153);">height</span> = <span style="color: rgb(28,0,207);">32</span>; frame.<span style="color: rgb(92,38,153);">size</span>.<span style="color: rgb(92,38,153);">width</span> = <span style="color: rgb(28,0,207);">32</span>;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(0,116,0);">//Print Icon</span><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(92,38,153);">UIImageView</span> *imgLabel = [[<span style="color: rgb(92,38,153);">UIImageView</span> <span style="color: rgb(46,13,110);">alloc</span>] <span style="color: rgb(46,13,110);">initWithFrame</span>:frame];<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;imgLabel.<span style="color: rgb(92,38,153);">tag</span> = <span style="color: rgb(28,0,207);">1000</span>;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;[cell.<span style="color: rgb(92,38,153);">contentView</span> <span style="color: rgb(46,13,110);">addSubview</span>:imgLabel];<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;[imgLabel <span style="color: rgb(46,13,110);">release</span>];&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>    }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">detailTextLabel</span>.<span style="color: rgb(92,38,153);">text</span> = tempName;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell.<span style="color: rgb(92,38,153);">textLabel</span>.<span style="color: rgb(92,38,153);">text</span> = tempProject;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(0,116,0);">//Setup Pic in Cell</span><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: rgb(92,38,153);">UIImageView</span> *imageView = (<span style="color: rgb(92,38,153);">UIImageView</span> *) [cell.<span style="color: rgb(92,38,153);">contentView</span> <span style="color: rgb(46,13,110);">viewWithTag</span>:<span style="color: rgb(28,0,207);">1000</span>];<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;imageView.<span style="color: rgb(92,38,153);">image</span> = [<span style="color: rgb(92,38,153);">UIImage</span> <span style="color: rgb(46,13,110);">imageNamed</span>:<span style="color: rgb(196,26,22);">@"ico-project.png"</span>]; <span style="color: rgb(0,116,0);">// set the image for the imageview</p>
<p></span>}</p>
<p><span style="font-size: 12pt;">This is a vast improvement to what I have previously used and have seen online.</p>
<p>I Hope this is found to be useful!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/06/iphone-os-sdk-tableview-text-and-subtitle-with-image-using-indent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Announcing DesignBrief for iPad</title>
		<link>http://duivesteyn.net/2010/04/02/announcing-designbrief-for-ipad/</link>
		<comments>http://duivesteyn.net/2010/04/02/announcing-designbrief-for-ipad/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 20:56:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[pr]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/2010/04/02/announcing-designbrief-for-ipad/</guid>
		<description><![CDATA[My first iPad application Design Brief is now available for sale! Design Brief is based around the idea of asking a new client the right questions to generate a broad and descriptive design brief, either for a website or graphic designer. The application was developed over 2 months and is a fantastic tool for a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://duivesteyn.net/wp-content/uploads/2010/04/icon-512-nobg.mYreHvw0taww.jpg" alt="icon-512-nobg.mYreHvw0taww.jpg" width="233" height="233" /></p>
<p>My first iPad application Design Brief is now available for sale! Design Brief is based around the idea of asking a new client the right questions to generate a broad and descriptive design brief, either for a website or graphic designer.<br />
 The application was developed over 2 months and is a fantastic tool for a creative studio.</p>
<p>The official website is <a href="http://apps.duivesteyn.net/DesignBrief">http://apps.duivesteyn.net/DesignBrief</a><br />
 The official twitter account is <a href="http://twitter.com/DesignBrief">twitter.com/DesignBrief</a>, but for support and all things de-apps <a href="http://twitter.com/de_applications">twitter.com/de_applications</a> should be used.<br />
 All feedback and comments received will be noticed, all problems will be replied to and all feature requests will be given consideration.</p>
<p>The initial sale price is just $2.49 available for the first 2 weeks only.</p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/04/02/announcing-designbrief-for-ipad/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 iPad Development &#8211; Quick &#8211; TableView Properties</title>
		<link>http://duivesteyn.net/2010/02/12/iphone-ipad-development-quick-tableview-properties/</link>
		<comments>http://duivesteyn.net/2010/02/12/iphone-ipad-development-quick-tableview-properties/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 07:00:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[object dimensions]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[tableview dimensions]]></category>
		<category><![CDATA[willRotateToInterfaceOrientation]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=366</guid>
		<description><![CDATA[I am currently working on supporting multi orientations of the iPhone (iPad) Screen, where on rotation some objects will be resized and others will be moved. For example I am wanting to move a tableView object and I want to ensure when I rotate back to Portrait that the tableview ends up in the exact [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://duivesteyn.net/wp-content/uploads/2010/02/iPad.png" rel="lightbox[366]"><img class="alignright size-full wp-image-380" title="iPad" src="http://duivesteyn.net/wp-content/uploads/2010/02/iPad.png" alt="" width="202" height="255" /></a>I am currently working on supporting multi orientations of the iPhone (iPad) Screen, where on rotation some objects will be resized and others will be moved. For example I am wanting to move a tableView object and I want to ensure when I rotate back to Portrait that the tableview ends up in the exact same place before I moved it.</p>
<p>I came up with some quick debug code you can use in your iPhone App Development (or iPad App development).</p>
<p>The idea is you get the H,W,X,Y co-ordinates and can then later perfectly replace the initial properties.</p>
<p><strong>Run this in viewDidAppear (for example)</strong></p>
<p>int height = tableView.frame.size.height;<br />
 int width = tableView.frame.size.width;<br />
 int x = tableView.frame.origin.x;<br />
 int y = tableView.frame.origin.y;</p>
<p>NSLog(@&#8221;TableView Height:%d&#8221;,height);<br />
 NSLog(@&#8221;TableViewWidth:%d&#8221;,width);<br />
 NSLog(@&#8221;TableViewX:%d&#8221;,x);<br />
 NSLog(@&#8221;TableViewY:%d&#8221;,y);</p>
<p><br class="spacer_" /></p>
<p><strong>Then later in willRotateToInterfaceOrientation you can use the code:</strong></p>
<p>tableView.frame = CGRectMake(x, y,	w, h);  //where x,y are the frame origin coordinates (x,y) and w,h are the width and height of the frame</p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/02/12/iphone-ipad-development-quick-tableview-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone UI &#8211; Best UI Elements I have seen</title>
		<link>http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/</link>
		<comments>http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 07:14:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone ui]]></category>
		<category><![CDATA[iphoneOS]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[ui-design]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=348</guid>
		<description><![CDATA[This post is also a deviation from the norm, an ever updating page of iPhone/iPad OS elements that I really like.]]></description>
			<content:encoded><![CDATA[<p>This post is also a deviation from the norm, an ever updating page of iPhone/iPad OS elements that I really like.</p>
<p><br class="spacer_" /></p>

<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/barnesandnoble/' title='Barnes and Noble'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/barnesandnoble-150x150.png" class="attachment-thumbnail" alt="Barnes and Noble - Beautiful Layered Interface (img from smashingmagazine.com)" title="Barnes and Noble" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/tweetie/' title='Tweetie2'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/tweetie-150x150.png" class="attachment-thumbnail" alt="Tweetie2 - Beautiful Layered Interface (img from smashingmagazine.com)" title="Tweetie2" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/here-file-file/' title='Here File File'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/Here-File-File-150x150.jpg" class="attachment-thumbnail" alt="Here File File" title="Here File File" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/money-book/' title='Money Book'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/Money-Book-150x150.jpg" class="attachment-thumbnail" alt="Money Book" title="Money Book" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0613/' title='IMG_0613'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0613-150x150.png" class="attachment-thumbnail" alt="IMG_0613" title="IMG_0613" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0614/' title='IMG_0614'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0614-150x150.png" class="attachment-thumbnail" alt="IMG_0614" title="IMG_0614" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0615/' title='IMG_0615'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0615-150x150.png" class="attachment-thumbnail" alt="IMG_0615" title="IMG_0615" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0616/' title='IMG_0616'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0616-150x150.png" class="attachment-thumbnail" alt="IMG_0616" title="IMG_0616" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0617/' title='IMG_0617'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0617-150x150.png" class="attachment-thumbnail" alt="IMG_0617" title="IMG_0617" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0618/' title='IMG_0618'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0618-150x150.png" class="attachment-thumbnail" alt="IMG_0618" title="IMG_0618" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0619/' title='IMG_0619'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0619-150x150.png" class="attachment-thumbnail" alt="IMG_0619" title="IMG_0619" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0620/' title='IMG_0620'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0620-150x150.png" class="attachment-thumbnail" alt="IMG_0620" title="IMG_0620" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0621/' title='IMG_0621'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0621-150x150.png" class="attachment-thumbnail" alt="IMG_0621" title="IMG_0621" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0622/' title='IMG_0622'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0622-150x150.png" class="attachment-thumbnail" alt="IMG_0622" title="IMG_0622" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0623/' title='IMG_0623'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0623-150x150.png" class="attachment-thumbnail" alt="IMG_0623" title="IMG_0623" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0624/' title='IMG_0624'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0624-150x150.png" class="attachment-thumbnail" alt="IMG_0624" title="IMG_0624" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0625/' title='IMG_0625'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0625-150x150.png" class="attachment-thumbnail" alt="IMG_0625" title="IMG_0625" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0626/' title='IMG_0626'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0626-150x150.png" class="attachment-thumbnail" alt="IMG_0626" title="IMG_0626" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0627/' title='IMG_0627'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0627-150x150.png" class="attachment-thumbnail" alt="IMG_0627" title="IMG_0627" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0628/' title='IMG_0628'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0628-150x150.png" class="attachment-thumbnail" alt="IMG_0628" title="IMG_0628" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0629/' title='IMG_0629'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0629-150x150.png" class="attachment-thumbnail" alt="IMG_0629" title="IMG_0629" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0630/' title='IMG_0630'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0630-150x150.png" class="attachment-thumbnail" alt="IMG_0630" title="IMG_0630" /></a>
<a href='http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/img_0631/' title='IMG_0631'><img width="150" height="150" src="http://duivesteyn.net/wp-content/uploads/2010/02/IMG_0631-150x150.png" class="attachment-thumbnail" alt="IMG_0631" title="IMG_0631" /></a>

]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/02/10/iphone-ui-best-ui-elements-i-have-seen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
