<?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>Dapp</title>
	<atom:link href="http://dapp.kerofrog.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://dapp.kerofrog.com.au</link>
	<description>the App Design App</description>
	<lastBuildDate>Thu, 19 Jan 2012 05:32:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to hide the Tab Bar in iOS</title>
		<link>http://dapp.kerofrog.com.au/778/how-to-hide-the-tab-bar-in-ios/</link>
		<comments>http://dapp.kerofrog.com.au/778/how-to-hide-the-tab-bar-in-ios/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 11:26:25 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=778</guid>
		<description><![CDATA[Ok, real basic tutorial this time.  One line of code!  Literally.  I've also put together a video tutorial that'll show you an example Dapp exported project and the steps to find the exact spot to put our little line of code that hides our tab bar :).]]></description>
			<content:encoded><![CDATA[<p>Ok, real basic tutorial this time.</p>
<p>One line of code!  Literally.</p>
<p>And the magic line of code is&#8230;</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p778code1'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7781"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p778code1"><pre class="objc" style="font-family:monospace;">MyViewController <span style="color: #002200;">*</span>controller <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>MyViewController alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// This is the line! :)</span>
controller.hidesBottomBarWhenPushed <span style="color: #002200;">=</span> <span style="color: #a61390;">YES</span>;
&nbsp;
<span style="color: #002200;">&#91;</span>self.navigationController pushViewController<span style="color: #002200;">:</span>controller animated<span style="color: #002200;">:</span><span style="color: #a61390;">YES</span><span style="color: #002200;">&#93;</span>;</pre></td></tr></table></div>

<p>That&#8217;s all you need <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  </p>
<p>That&#8217;s fine and all if you&#8217;re a <strong>coder</strong>, but not all of us go tap-tap on keyboards each and every day (and especially night!), whilst sucking down on cans of cola (really bad for your teeth by the way) and chomping down on pizza as we stare like zombies at our screens.</p>
<p>Ah, fun times <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8230;</p>
<p>Anyways, I&#8217;ve also put together a video tutorial that&#8217;ll show you an example Dapp exported project and the steps to find the exact spot to put our little line of code that hides our tab bar <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Check it out.</p>
<p><iframe width="640" height="480" src="http://www.youtube.com/embed/J_lRGOP0TSo?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/778/how-to-hide-the-tab-bar-in-ios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bugger it!  Get all my skillz for FREE!</title>
		<link>http://dapp.kerofrog.com.au/763/bugger-it-get-all-my-skillz-for-free/</link>
		<comments>http://dapp.kerofrog.com.au/763/bugger-it-get-all-my-skillz-for-free/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 03:14:08 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=763</guid>
		<description><![CDATA[I love to write.  I love to teach. So I figured, why not just teach everyone everything you&#8217;ve learnt over the last 4 years on the app store. And the over 15,000 dollars worth of investments in business and personal development courses, books, audio, videos and seminars. . So I am . I&#8217;ve already written [...]]]></description>
			<content:encoded><![CDATA[<p>I love to write.  I love to teach.</p>
<p>So I figured, why not just teach everyone everything you&#8217;ve learnt over the last 4 years on the app store.</p>
<p>And the over 15,000 dollars worth of investments in business and personal development courses, books, audio, videos and seminars.</p>
<p> <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>So I am <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I&#8217;ve already written a large bunch of content of over 20 posts.  Just gonna seed one each day, and keep em topped up of course <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>The site for this is <a title="Kerofrog" href="http://kerofrog.com" target="_blank">kerofrog.com</a></p>
<p>Just two up so far, but yeah, if you want to learn about everything I&#8217;ve done wrong! lol&#8230;</p>
<p>Then check out the free report on the right hand side of the site.</p>
<p>It goes through the 8 biggest mistakes yer gonna make and how not make them&#8230; as I did.. <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Some bloody awesome info there, so check it out.</p>
<p>PS: I also put bought some nice pics to put in the report to make it more interesting <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/763/bugger-it-get-all-my-skillz-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageView Zoom Tutorial for iPhone &amp; iPad</title>
		<link>http://dapp.kerofrog.com.au/743/imageview-zoom-tutorial-for-iphone-ipad/</link>
		<comments>http://dapp.kerofrog.com.au/743/imageview-zoom-tutorial-for-iphone-ipad/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 14:49:36 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>
		<category><![CDATA[imageview scale]]></category>
		<category><![CDATA[imageview zoom]]></category>
		<category><![CDATA[ios uiimageview scale]]></category>
		<category><![CDATA[ios uiimageview zoom]]></category>
		<category><![CDATA[iphone image zoom]]></category>
		<category><![CDATA[iphone uiimageview scale]]></category>
		<category><![CDATA[iphone uiimageview zoom]]></category>
		<category><![CDATA[uiimageview zoom]]></category>
		<category><![CDATA[uiimageview zoom example]]></category>
		<category><![CDATA[zoom imageview]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=743</guid>
		<description><![CDATA[This vid takes you through the coding steps to can make your images (imageview) on your iPhone and iPad projects zoom/scale and pan.]]></description>
			<content:encoded><![CDATA[<p>Hey guys <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Welcome to the ImageView Zoom Tutorial for iPhone &amp; iPad.</p>
<p>Ok, this vid shows you how you can take your image view (uiimageview) code that is created for you by Dapp and turn them into zoomable images for iOS (iPhone &amp; iPad).</p>
<p>Of course, if you just want to create zoomable images (scale, pan) in your own code then you can use this too.</p>
<p>As a special treat I&#8217;ve also included a custom class that you can use in your projects <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8230; so if you are feeling lazy, just grab the custom class and drop it into your code.</p>
<p>&#8212;-&gt; <a href="http://dapp.kerofrog.com.au/wp-content/uploads/2011/12/KFImageZoomView.zip">KFImageZoomView</a> class files. &lt;&#8212;-</p>
<p><iframe width="640" height="480" src="http://www.youtube.com/embed/iKxFTu0vPh4?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>For those who are extra lazy, here is the custom class code you can copy/paste and learn from.. or just use in your own iOS projects! <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p743code2'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7432"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code" id="p743code2"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// You are free to do whatever you want with this code :)</span>
<span style="color: #11740a; font-style: italic;">// Cliff, Kerofrog</span>
&nbsp;
<span style="color: #6e371a;">#import &lt;UIKit/UIKit.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> KFImageZoomView <span style="color: #002200;">:</span> UIScrollView &lt;UIScrollViewDelegate&gt; <span style="color: #002200;">&#123;</span>
    UIImageView <span style="color: #002200;">*</span>imageView;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic, retain<span style="color: #002200;">&#41;</span>   UIImageView     <span style="color: #002200;">*</span>imageView;
&nbsp;
<span style="color: #6e371a;">#pragma mark Initialisation</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithImageNamed<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>imageName atLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CGPoint<span style="color: #002200;">&#41;</span>location;
&nbsp;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p743code3'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7433"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</pre></td><td class="code" id="p743code3"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// You are free to do whatever you want with this code :)</span>
<span style="color: #11740a; font-style: italic;">// Cliff, Kerofrog</span>
&nbsp;
<span style="color: #6e371a;">#import &quot;KFImageZoomView.h&quot;</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> KFImageZoomView
&nbsp;
<span style="color: #a61390;">@synthesize</span> imageView;
&nbsp;
<span style="color: #6e371a;">#pragma mark - Memory Management</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span> dealloc <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>self.imageView release<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #6e371a;">#pragma mark - Initialisation</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithImageNamed<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>imageName atLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CGPoint<span style="color: #002200;">&#41;</span>location <span style="color: #002200;">&#123;</span>
    self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super init<span style="color: #002200;">&#93;</span>;
    <span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>self<span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        <span style="color: #11740a; font-style: italic;">// Assign the delegate</span>
        self.delegate <span style="color: #002200;">=</span> self;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// Create our image view using the passed in image name</span>
        self.imageView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIImageView alloc<span style="color: #002200;">&#93;</span> initWithImage<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIImage imageNamed<span style="color: #002200;">:</span>imageName<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// Update the ImageZoom frame to match the dimensions of passed in image</span>
        self.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span>location.x, location.y, 
                                self.imageView.frame.size.width, self.imageView.frame.size.height<span style="color: #002200;">&#41;</span>;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// Set a default minimum and maximum zoom scale</span>
        self.minimumZoomScale <span style="color: #002200;">=</span> 0.5f;
        self.maximumZoomScale <span style="color: #002200;">=</span> 3.0f;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// Add image view as a subview</span>
        <span style="color: #002200;">&#91;</span>self addSubview<span style="color: #002200;">:</span>self.imageView<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#125;</span>
&nbsp;
    <span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #6e371a;">#pragma mark - UIScrollViewDelegates</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>scrollViewDidEndZooming<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIScrollView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>scrollView withView<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>view atScale<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">float</span><span style="color: #002200;">&#41;</span>scale <span style="color: #002200;">&#123;</span>
&nbsp;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>UIView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>viewForZoomingInScrollView<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIScrollView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>scrollView <span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">return</span> self.imageView;
<span style="color: #002200;">&#125;</span>
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/743/imageview-zoom-tutorial-for-iphone-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to export Dapp iPhone generated code files to Xcode 4.2 Video Tutorial</title>
		<link>http://dapp.kerofrog.com.au/554/how-to-export-dapp-iphone-generated-files-to-xcode-4-2-video-tutorial/</link>
		<comments>http://dapp.kerofrog.com.au/554/how-to-export-dapp-iphone-generated-files-to-xcode-4-2-video-tutorial/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 05:06:58 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=554</guid>
		<description><![CDATA[A few users having trouble with the latest release of Xcode. Xcode 4.2, which came out recently with iOS 5. How cool is Siri?! Anyways, the process is actually easier than it was in Xcode 4, as we now have the option to create an &#8216;Empty Application&#8217; that has no reference to a XIB file [...]]]></description>
			<content:encoded><![CDATA[<p>A few users having trouble with the latest release of Xcode.  Xcode 4.2, which came out recently with iOS 5.</p>
<p>How cool is Siri?! <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyways, the process is actually easier than it was in Xcode 4, as we now have the option to create an &#8216;Empty Application&#8217; that has no reference to a XIB file at all.</p>
<p>There is also an awesome new feature called &#8216;Automatic Reference Counting&#8217; (ARC) in Xcode 4.2 that essentially allows us to ignore memory management.  Great feature for novice developers.</p>
<p>Dapp doesn&#8217;t support this feature yet <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .. because the generated code has all the needed memory management code that ARC really doesn&#8217;t like.  Any &#8216;memory management&#8217; related calls will cause a build error.  </p>
<p>I can see the value this would have for our novice programmer users, so I&#8217;ll be making sure the next version of Dapp has the option of exporting code that has no memory management included.</p>
<p>Enjoy the very very brief video tutorial! </p>
<p>Oh!.. I&#8217;ve said this about 50 times in the tutorial <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> , but it&#8217;s very short because it&#8217;s a modified version of our Xcode 4 Advanced Hello World tutorial for Xcode 4.2.  The original tutorial will take you through how to use the tableview object to create what is shown in this tutorial.  It can be found at:</p>
<p><a href="http://dapp.kerofrog.com.au/387/creating-an-advanced-hello-world-xcode-4-iphone-project-with-dapp-video-tutorial/">Creating an Advanced Hello World Xcode 4 iPhone Project with Dapp Video Tutorial</a></p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/Kd0oneI4D9k?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/554/how-to-export-dapp-iphone-generated-files-to-xcode-4-2-video-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone UIScrollView tutorial using Dapp</title>
		<link>http://dapp.kerofrog.com.au/497/iphone-uiscrollview-tutorial-using-dapp/</link>
		<comments>http://dapp.kerofrog.com.au/497/iphone-uiscrollview-tutorial-using-dapp/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 07:53:58 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>
		<category><![CDATA[Dapp tutorial]]></category>
		<category><![CDATA[iPhone programming tutorial]]></category>
		<category><![CDATA[iPhone SDK Tutorial]]></category>
		<category><![CDATA[Programatically code UIScrollView]]></category>
		<category><![CDATA[UIScrollView]]></category>
		<category><![CDATA[UIScrollView Tutorial]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=497</guid>
		<description><![CDATA[As promised, here is a UIScrollView tutorial. I&#8217;ve gone ahead and made it extremely simple . Should be a nice change from some of the other more complicated tutorials I&#8217;ve seen online. As the scroll view we are going to create is very simple, it is perhaps worthwhile to checkout Apple&#8217;s documentation on this object [...]]]></description>
			<content:encoded><![CDATA[<p>As promised, here is a UIScrollView tutorial.  I&#8217;ve gone ahead and made it extremely simple <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .  Should be a nice change from some of the other more complicated tutorials I&#8217;ve seen online.</p>
<p>As the scroll view we are going to create is very simple, it is perhaps worthwhile to checkout Apple&#8217;s documentation on this object so you can go ahead and add your own custom features.</p>
<p><a title="Apple UIScrollView Class Reference" href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html" target="_blank">Apple UIScrollView Class Reference</a></p>
<p>Enjoy the tutorial <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .  I&#8217;ve also attached a copy of the updates I made to the Dapp exported code files so you can just browse the code if you wish.</p>
<p><a href="http://dapp.kerofrog.com.au/wp-content/uploads/2011/06/ScrollViewApp-Project-Files.zip">ScrollViewApp Project Files</a></p>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/FrXU0LdWC_Y?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>And just to be extra nice to those that just want to have a quick look at some of the code without downloading or watching anything <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p><strong>HomeView.h</strong></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p497code6'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4976"><td class="code" id="p497code6"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// Parent View Controller</span>
<span style="color: #a61390;">@class</span> HomeViewController;
&nbsp;
<span style="color: #a61390;">@interface</span> HomeView <span style="color: #002200;">:</span> UIView <span style="color: #002200;">&#123;</span>
    HomeViewController <span style="color: #002200;">*</span>refParentViewController;
&nbsp;
    UIScrollView <span style="color: #002200;">*</span>ourScrollView;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithParentViewController<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>HomeViewController <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>parent;
<span style="color: #a61390;">@end</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p><strong>HomeView.m</strong></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p497code7'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4977"><td class="code" id="p497code7"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// Header File</span>
<span style="color: #6e371a;">#import &quot;HomeView.h&quot;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">// Parent View Controller</span>
<span style="color: #6e371a;">#import &quot;HomeViewController.h&quot;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">// Please add the QuartzCore.framework to the project</span>
<span style="color: #6e371a;">#import &lt;QuartzCore/QuartzCore.h&gt;</span>
&nbsp;
<span style="color: #11740a; font-style: italic;">// Private Methods</span>
<span style="color: #a61390;">@interface</span> HomeView<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#41;</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView1;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView2;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView3;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadScrollView;
<span style="color: #a61390;">@end</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> HomeView
&nbsp;
<span style="color: #6e371a;">#pragma mark -</span>
<span style="color: #6e371a;">#pragma mark Memory Management</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>dealloc <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>ourScrollView release<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #6e371a;">#pragma mark -</span>
<span style="color: #6e371a;">#pragma mark Initialization</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>initWithParentViewController<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>HomeViewController <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>parent <span style="color: #002200;">&#123;</span>
    <span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span><span style="color: #002200;">&#40;</span>self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super init<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        <span style="color: #11740a; font-style: italic;">// Update this to initialize the view with your own frame size</span>
	<span style="color: #002200;">&#91;</span>self setFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">320</span>, <span style="color: #2400d9;">460</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Assign the reference back to the parent view controller</span>
	refParentViewController <span style="color: #002200;">=</span> parent;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Set the view background color</span>
	<span style="color: #002200;">&#91;</span>self setBackgroundColor<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIColor lightGrayColor<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// Our load scrollview method</span>
        <span style="color: #002200;">&#91;</span>self loadScrollView<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#125;</span>
	<span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #6e371a;">#pragma mark -</span>
<span style="color: #6e371a;">#pragma mark Load Subview Methods</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadScrollView <span style="color: #002200;">&#123;</span>
    ourScrollView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIScrollView alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #11740a; font-style: italic;">// Now to populate and configure our scroll view</span>
    <span style="color: #11740a; font-style: italic;">// 416 is the height of our view that is leftover, after you take away the navigation bar (44 pixels) and status bar (20 pixels)</span>
    <span style="color: #002200;">&#91;</span>ourScrollView setFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">320</span>, <span style="color: #2400d9;">416</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #11740a; font-style: italic;">// Now we need to add our rectangle views as subviews of our scroll view.</span>
    <span style="color: #002200;">&#91;</span>self loadRectangleView1<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>self loadRectangleView2<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>self loadRectangleView3<span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #11740a; font-style: italic;">// Now we need to set our content size for our scroll view.  Which can be any size and is not limited by our scroll view frame size.</span>
    <span style="color: #002200;">&#91;</span>ourScrollView setContentSize<span style="color: #002200;">:</span>CGSizeMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">320</span>, <span style="color: #2400d9;">500</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #002200;">&#91;</span>self addSubview<span style="color: #002200;">:</span>ourScrollView<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView1 <span style="color: #002200;">&#123;</span>
    UIView <span style="color: #002200;">*</span>rectangleView1 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIView alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>rectangleView1 setBackgroundColor<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIColor greenColor<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
    rectangleView1.layer.cornerRadius <span style="color: #002200;">=</span> <span style="color: #2400d9;">10</span>;
    rectangleView1.layer.borderColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIColor blackColor<span style="color: #002200;">&#93;</span> CGColor<span style="color: #002200;">&#93;</span>;
    rectangleView1.layer.borderWidth <span style="color: #002200;">=</span> <span style="color: #2400d9;">1</span>;
    <span style="color: #002200;">&#91;</span>rectangleView1 setFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">110</span>, <span style="color: #2400d9;">37</span>, <span style="color: #2400d9;">100</span>, <span style="color: #2400d9;">100</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>ourScrollView addSubview<span style="color: #002200;">:</span>rectangleView1<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView2 <span style="color: #002200;">&#123;</span>
    UIView <span style="color: #002200;">*</span>rectangleView2 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIView alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>rectangleView2 setBackgroundColor<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIColor greenColor<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
    rectangleView2.layer.cornerRadius <span style="color: #002200;">=</span> <span style="color: #2400d9;">10</span>;
    rectangleView2.layer.borderColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIColor blackColor<span style="color: #002200;">&#93;</span> CGColor<span style="color: #002200;">&#93;</span>;
    rectangleView2.layer.borderWidth <span style="color: #002200;">=</span> <span style="color: #2400d9;">1</span>;
    <span style="color: #002200;">&#91;</span>rectangleView2 setFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">110</span>, <span style="color: #2400d9;">196</span>, <span style="color: #2400d9;">100</span>, <span style="color: #2400d9;">100</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>ourScrollView addSubview<span style="color: #002200;">:</span>rectangleView2<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadRectangleView3 <span style="color: #002200;">&#123;</span>
    UIView <span style="color: #002200;">*</span>rectangleView3 <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIView alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>rectangleView3 setBackgroundColor<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>UIColor greenColor<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
    rectangleView3.layer.cornerRadius <span style="color: #002200;">=</span> <span style="color: #2400d9;">10</span>;
    rectangleView3.layer.borderColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIColor blackColor<span style="color: #002200;">&#93;</span> CGColor<span style="color: #002200;">&#93;</span>;
    rectangleView3.layer.borderWidth <span style="color: #002200;">=</span> <span style="color: #2400d9;">1</span>;
    <span style="color: #002200;">&#91;</span>rectangleView3 setFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">110</span>, <span style="color: #2400d9;">356</span>, <span style="color: #2400d9;">100</span>, <span style="color: #2400d9;">100</span><span style="color: #002200;">&#41;</span><span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>ourScrollView addSubview<span style="color: #002200;">:</span>rectangleView3<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/497/iphone-uiscrollview-tutorial-using-dapp/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Create an Augmented Reality app with Dapp and Layar Player SDK</title>
		<link>http://dapp.kerofrog.com.au/470/create-an-augmented-reality-app-with-dapp-and-layar-player-sdk/</link>
		<comments>http://dapp.kerofrog.com.au/470/create-an-augmented-reality-app-with-dapp-and-layar-player-sdk/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 04:30:20 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>
		<category><![CDATA[AR]]></category>
		<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[Dapp]]></category>
		<category><![CDATA[Dapp Project]]></category>
		<category><![CDATA[iPhone 4]]></category>
		<category><![CDATA[iPhone SDK Tutorial]]></category>
		<category><![CDATA[Layar Player SDK]]></category>
		<category><![CDATA[Xcode 4]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=470</guid>
		<description><![CDATA[Welcome! This is a two part series on how you can create an Augmented Reality app using just Dapp and Layar.  As part of this series, I have also included the settings for a sample published Layar app for you to try out. The first required step is that you download the Layar Player SDK [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome!</p>
<p>This is a two part series on how you can create an Augmented Reality app using just Dapp and Layar.  As part of this series, I have also included the settings for a sample published Layar app for you to try out.</p>
<p>The first required step is that you download the Layar Player SDK - <a href="http://public.layar.com/LayarPlayerSDK26May.zip">LayarPlayerSDK26May.zip</a></p>
<p>Alternatively, you can also download the latest Layar Player SDK at <a href="http://www.layar.com/tools/player/">http://www.layar.com/tools/player/</a>, just be careful with later versions as instructions might have changed and this tutorial might no longer be 100% correct.</p>
<p>Within the Layar Player SDK is also included the &#8220;LayarPlayer SDK 1.1 Documentation.PDF&#8221;.  Please open this file when working on the second part of the tutorial as this is the documentation I work from and can assist in getting everything correctly setup.</p>
<p><strong>PART ONE</strong></p>
<p>The first part shows us creating a simple Dapp app that we will export to Xcode.  This will form the basis of our Layar App.</p>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/mc-Va-tCvNs?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
<p><strong>PART TWO</strong></p>
<p>Part two of this video tutorial involves us copying over our exported Dapp code into a new Xcode project.  Feel free to visit <a href="http://dapp.kerofrog.com.au/387/creating-an-advanced-hello-world-xcode-4-iphone-project-with-dapp-video-tutorial/">Creating an advanced Hello World Xcode 4 iPhone project with Dapp video tutorial</a> for a more detailed rundown of copying over these files to Xcode.</p>
<p>This is my first Audio based Video Tutorial and I feel I might have moved a bit too quickly <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .  All good, just make sure you press the pause button often so you can keep up.  Finally, feel free to view the video in full-screen 720p HD mode if you have any trouble seeing any of the code.  Everything should then be perfectly clear <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<blockquote><p>Amendment: Throughout the video I included Release AND Debug symbols (as well as both the Debug and Release folders).  Perfectly fine to use both during development but prior to release, please remove references to Debug symbols and the copied Debug folder from your project as they are no longer required.</p></blockquote>
<p><iframe width="640" height="390" src="http://www.youtube.com/embed/kfKBQBIqQtA?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>The code that we insert during this second tutorial is:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p470code9'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4709"><td class="code" id="p470code9"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadLayarPlayerWithName<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>layarName key<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>consumerKey secret<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>consumerSecret <span style="color: #002200;">&#123;</span>
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> <span style="color: #002200;">*</span>oauthKeys <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> arrayWithObjects<span style="color: #002200;">:</span>LPConsumerKeyParameterKey, LPConsumerSecretParameterKey, <span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> <span style="color: #002200;">*</span>oauthValues <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> arrayWithObjects<span style="color: #002200;">:</span>consumerKey, consumerSecret, <span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span style="color: #400080;">NSDictionary</span></a> <span style="color: #002200;">*</span>oauthParameters <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span style="color: #400080;">NSDictionary</span></a> dictionaryWithObjects<span style="color: #002200;">:</span>oauthValues forKeys<span style="color: #002200;">:</span>oauthKeys<span style="color: #002200;">&#93;</span>;
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> <span style="color: #002200;">*</span>layerKeys <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> arrayWithObject<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;radius&quot;</span><span style="color: #002200;">&#93;</span>;
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> <span style="color: #002200;">*</span>layerValues <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span style="color: #400080;">NSArray</span></a> arrayWithObject<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;1000&quot;</span><span style="color: #002200;">&#93;</span>;
    <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span style="color: #400080;">NSDictionary</span></a> <span style="color: #002200;">*</span>layerFilters <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span style="color: #400080;">NSDictionary</span></a> dictionaryWithObjects<span style="color: #002200;">:</span>layerValues forKeys<span style="color: #002200;">:</span>layerKeys<span style="color: #002200;">&#93;</span>;
    LPAugmentedRealityViewController <span style="color: #002200;">*</span>augmentedRealityViewController <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span> LPAugmentedRealityViewController alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
augmentedRealityViewController.delegate <span style="color: #002200;">=</span> <span style="color: #a61390;">nil</span>;
    <span style="color: #002200;">&#91;</span>self presentModalViewController<span style="color: #002200;">:</span>augmentedRealityViewController animated<span style="color: #002200;">:</span><span style="color: #a61390;">YES</span><span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>augmentedRealityViewController loadLayerWithName<span style="color: #002200;">:</span>layarName oauthParameters<span style="color: #002200;">:</span>oauthParameters layerFilters<span style="color: #002200;">:</span>layerFilters options<span style="color: #002200;">:</span>LPMapViewDisabled | LPListViewDisabled<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;<br />
Also, this is the sample Layer Player name, consumer key and secret key to use within the tutorial (if you don&#8217;t already have your own).</p>
<ul>
<li>Player Name: nestest</li>
<li>Consumer Key: e4c775db9a1d90377764dd8ba06829</li>
<li>Secret Key: 3e69effc36</li>
</ul>
<p>&nbsp;<br />
<a href="http://dapp.kerofrog.com.au/wp-content/uploads/2011/06/LayarApp.zip">Create an Augmented Reality app with Dapp and Layar Player SDK Dapp Auto-Generated Project Files</a><br />
&nbsp;<br />
As a special treat I&#8217;m also attaching my complete Xcode project.  Feel free to replace my Dapp generated files with your own, and use it as a starting template for future Layar SDK projects <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  The neat thing is that all the frameworks, include files and everything is already setup for you. Please Note: These include/release/debug folders would need to be replaced when using future versions of Layar Player SDK.<br />
&nbsp;<br />
<a href="http://manage.kerofrog.com.au/files/DappLayarApp.zip">Create an Augmented Reality app with Dapp and Layar Player SDK Dapp Complete Project</a></p>
<p>Comments are encouraged as I&#8217;m keen to update this video tutorial wherever might be required. <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/470/create-an-augmented-reality-app-with-dapp-and-layar-player-sdk/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>How to hide Navigation Controller Navigation Bars in code using Xcode 4</title>
		<link>http://dapp.kerofrog.com.au/460/how-to-hide-navigation-controllers-in-code-using-xcode-4/</link>
		<comments>http://dapp.kerofrog.com.au/460/how-to-hide-navigation-controllers-in-code-using-xcode-4/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 23:42:37 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>
		<category><![CDATA[iPhone SDK Tutorial]]></category>
		<category><![CDATA[UINavigationBar]]></category>
		<category><![CDATA[UINavigationController]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=460</guid>
		<description><![CDATA[There is a bug in version 1.3 of Dapp which is causing Navigation Controllers not to be hidden when exporting to code.  I&#8217;ll be correcting this in the next update, but before then, this is a little tutorial on the code you can use to hide them yourself. Oh, also please note that this is [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug in version 1.3 of Dapp which is causing Navigation Controllers not to be hidden when exporting to code.  I&#8217;ll be correcting this in the next update, but before then, this is a little tutorial on the code you can use to hide them yourself.</p>
<p>Oh, also please note that this is an extension to another tutorial &#8211; <a title="Updating Navigation Controller in code" href="http://dapp.kerofrog.com.au/215/updating-uinav…n-bar-tutorial/">Updating Navigation Controller in code</a>.  The other tutorial will show you how to update the look of the Navigation Controller (and how to hide it).  Although I&#8217;ll be going into a bit more depth on how to use the viewWillAppear method in your code.</p>
<p>If you want to hide your Navigation Controller throughout your whole app, then you will want to be placing this in your AppDelegate.m file.  Dapp generally creates this file with the format &lt;ProjectName&gt;AppDelegate.m.  If you scroll down the code, you will see the part where I inserted the code to hide the Navigation Controller.  Just copy this part and place it in your equivalent didFinishLaunchingWithOptions method.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p460code12'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p46012"><td class="code" id="p460code12"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">BOOL</span><span style="color: #002200;">&#41;</span>application<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIApplication <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>application didFinishLaunchingWithOptions<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span style="color: #400080;">NSDictionary</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>launchOptions <span style="color: #002200;">&#123;</span>
	<span style="color: #11740a; font-style: italic;">// Override point for customization after app launch</span>
	<span style="color: #11740a; font-style: italic;">// Create the window object</span>
	UIWindow <span style="color: #002200;">*</span>localWindow <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIWindow alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIScreen mainScreen<span style="color: #002200;">&#93;</span> bounds<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Assign the localWindow to the AppDelegate window, then release the local window</span>
	self.window <span style="color: #002200;">=</span> localWindow;
	<span style="color: #002200;">&#91;</span>localWindow release<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Setup the first view controller</span>
	Page1OffViewController <span style="color: #002200;">*</span>page1OffViewController <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>Page1OffViewController alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Initialise the navigation controller with the first view controller as its root view controller</span>
	navigationController <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UINavigationController alloc<span style="color: #002200;">&#93;</span> initWithRootViewController<span style="color: #002200;">:</span>page1OffViewController<span style="color: #002200;">&#93;</span>;
&nbsp;
        <span style="color: #11740a; font-style: italic;">// This is where we hide the navigation bar! :)</span>
        <span style="color: #002200;">&#91;</span>navigationController setNavigationBarHidden<span style="color: #002200;">:</span><span style="color: #a61390;">YES</span><span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Navigation controller has copy of view controller, so release our copy</span>
	<span style="color: #002200;">&#91;</span>page1OffViewController release<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// Add the navigation controller as a subview of our window</span>
	<span style="color: #002200;">&#91;</span>window addSubview<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span>navigationController view<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>window makeKeyAndVisible<span style="color: #002200;">&#93;</span>;
&nbsp;
	<span style="color: #a61390;">return</span> <span style="color: #a61390;">YES</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>Ok, that&#8217;s just if we want to hide our Navigation Controller throughout our entire app.  There are times where we would like to show it, and then alternately hide it.  To specifically control this for every page, you will need to have a viewWillAppear method in your View Controllers which is where you can call code to hide your Navigation Controller.</p>
<p>Just copy the following code underneath your &#8216;#pragma mark UIViewController Delegates&#8217; section in your code for the View Controller that you wish to hide your Navigation Bar for.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p460code13'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p46013"><td class="code" id="p460code13"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>viewWillAppear<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">BOOL</span><span style="color: #002200;">&#41;</span>animated <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>self.navigationController setNavigationBarHidden<span style="color: #002200;">:</span><span style="color: #a61390;">YES</span><span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #002200;">&#91;</span>super viewWillAppear<span style="color: #002200;">:</span>animated<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>And that&#8217;s it.  Pretty simple <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .  I&#8217;ve added this to the list of known bugs and will be addressing this in the next update so that you can individually set this within Dapp itself.</p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/460/how-to-hide-navigation-controllers-in-code-using-xcode-4/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Tab Bar Controller with Dapp Video Tutorial</title>
		<link>http://dapp.kerofrog.com.au/442/tab-bar-controller-with-dapp-video-tutorial/</link>
		<comments>http://dapp.kerofrog.com.au/442/tab-bar-controller-with-dapp-video-tutorial/#comments</comments>
		<pubDate>Mon, 30 May 2011 12:26:21 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[Dapp iPhone SDK Tutorials]]></category>
		<category><![CDATA[Dapp]]></category>
		<category><![CDATA[guidelines]]></category>
		<category><![CDATA[iPhone SDK Tutorial]]></category>
		<category><![CDATA[Tab Bar Controller]]></category>
		<category><![CDATA[UITabBarController]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=442</guid>
		<description><![CDATA[Just a quick Tab Bar Controller tutorial.  :) I&#8217;ll put up the Dapp generated source code tomorrow.  But yeah, this video shows a quick rundown of building a Design (Project) with 3 Pages (View Controllers) that are linked together with Actions. From there, I set up the Tab Bar Controller and Tab Bar Items. Tab [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick Tab Bar Controller tutorial.  :)</p>
<p>I&#8217;ll put up the Dapp generated source code tomorrow.  But yeah, this video shows a quick rundown of building a Design (Project) with 3 Pages (View Controllers) that are linked together with Actions.</p>
<p>From there, I set up the Tab Bar Controller and Tab Bar Items.</p>
<p>Tab Bar Controllers support custom images, titles and all of the system Tab Bar Item choices.</p>
<p>Just a BIG bit of information in regard of Tab Bar Item images is to make sure you read the <a title="Apple Custom Icon and Custom Image Creation Guidelines" href="http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html" target="_blank">Apple Custom Icon and Custom Image Creation Guidelines</a>.  Basically, Tab Bar Item Images must follow a strict format guidelines for them to display correctly.  I&#8217;ll try to get a more condensed version of those guidelines on the website tomorrow.</p>
<p>Without further ado, here is the Tab Bar Controller with Dapp Video Tutorial.</p>
<p><iframe width="560" height="349" src="http://www.youtube.com/embed/MlTYu8mNwkQ" frameborder="0" allowfullscreen></iframe></p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/442/tab-bar-controller-with-dapp-video-tutorial/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Dapp app and website updated, now tell me what to do!</title>
		<link>http://dapp.kerofrog.com.au/439/dapp-app-and-website-updated-now-tell-me-what-to-do/</link>
		<comments>http://dapp.kerofrog.com.au/439/dapp-app-and-website-updated-now-tell-me-what-to-do/#comments</comments>
		<pubDate>Mon, 30 May 2011 05:30:42 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=439</guid>
		<description><![CDATA[Ok, I&#8217;ve released a new version of Dapp and have updated the website. But, now I&#8217;m not sure what to work on next.  This is where you guys come in. Visit our new Feature Requests section and post what new feature/s you would like to see in Dapp.  I&#8217;m going to gradually add them to [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I&#8217;ve released a new version of Dapp and have updated the website.</p>
<p>But, now I&#8217;m not sure what to work on next.  This is where you guys come in. <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Visit our new <a title="Feature Requests" href="http://dapp.kerofrog.com.au/411/feature-requests/">Feature Requests</a> section and post what new feature/s you would like to see in Dapp.  I&#8217;m going to gradually add them to the poll and the most voted for features will be what I&#8217;ll be working on next.</p>
<p>Nothing like democracy <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8230; but mainly, I want to make sure I&#8217;m coding what you want.</p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/439/dapp-app-and-website-updated-now-tell-me-what-to-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hot dang, Dapp is on sale!</title>
		<link>http://dapp.kerofrog.com.au/399/hot-dang-dapp-is-on-sale/</link>
		<comments>http://dapp.kerofrog.com.au/399/hot-dang-dapp-is-on-sale/#comments</comments>
		<pubDate>Thu, 26 May 2011 04:48:22 +0000</pubDate>
		<dc:creator>Cliff</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Dapp Sale]]></category>

		<guid isPermaLink="false">http://dapp.kerofrog.com.au/?p=399</guid>
		<description><![CDATA[Yep, on sale for a very short time. 40% off for the next 48 hours! Dapp has never been on sale, so for anyone who has been holding off, now is the perfect time to pick up Dapp. Check out Dapp on the app store. Cheers, Cliff - kerofrog Enjoy using Dapp? Help spread the [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, on sale for a very short time.  40% off for the next 48 hours!</p>
<p>Dapp has never been on sale, so for anyone who has been holding off, now is the perfect time to pick up Dapp. <img src='http://dapp.kerofrog.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://itunes.apple.com/us/app/dapp/id370888555?mt=8">Check out Dapp on the app store</a>.</p>
Cheers, <br />
Cliff - kerofrog
<br /><br />
Enjoy using Dapp?  Help spread the word and give me more time to code (instead of marketing) by giving us an <a href="http://bit.ly/anM53N"><u>iTunes rating or review</u></a> after each update.]]></content:encoded>
			<wfw:commentRss>http://dapp.kerofrog.com.au/399/hot-dang-dapp-is-on-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

