<?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>Dynamic Leap Technology Inc. &#187; Tutorials</title>
	<atom:link href="http://www.dynamic-leap.com/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dynamic-leap.com</link>
	<description>Mobile App Development</description>
	<lastBuildDate>Tue, 13 Dec 2011 23:06:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Beginner iPhone Tutorial – Polygon</title>
		<link>http://www.dynamic-leap.com/tutorials/beginner-iphone-tutorial-%e2%80%93-polygon/</link>
		<comments>http://www.dynamic-leap.com/tutorials/beginner-iphone-tutorial-%e2%80%93-polygon/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 23:41:33 +0000</pubDate>
		<dc:creator>Dynamic Leap</dc:creator>
		
		<guid isPermaLink="false">http://test.dynamic-leap.com/?post_type=tutorials&#038;p=109</guid>
		<description><![CDATA[This is a tutorial that I used to presente during the first class at the iPhone course, course that I taught at British Columbia Institute of Technology in Vancouver between 2009 and 2010. This tutorial is meant to quickly introduce novices to the iOS SDK development tools, showcase some fundamental design patterns and demonstrate how easy [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial that I used to presente during the first class at the <a title="BCIT iPhone Programming Course" href="http://www.bcit.ca/study/courses/mdia2652" target="_blank">iPhone course</a>, course that I taught at British Columbia Institute of Technology in Vancouver between 2009 and 2010. This tutorial is meant to quickly introduce novices to the iOS SDK development tools, showcase some fundamental design patterns and demonstrate how easy it is to get started developing for Apple’s iPhone, iPod Touch and the iPad. This tutorial was designed originally using iPhone SDK 3.x, but I updated it to use the development tools iOS SDK version 5.x.</p>
<h3>What will you learn?</h3>
<ul>
<li><strong>Tools:</strong> how to use <em>XCode 4.2</em> to create a new iPhone application, how to add a new class file and how to create your own view class. Using <em>XCode</em> to create the UI: drag and drop, inspector tabs, custom classes, connecting graphically objects, outlets and actions.</li>
<li><strong>Programming:</strong> practical examples of implementing the Model View Controller design pattern, outlets and actions, member variable naming conventions, forward class declaration, deriving classes, and overriding methods.</li>
<li><strong>Frameworks:</strong> <em>UIKit</em> concepts: creating a custom UIView by overriding drawRect, and the use of needsDisplay and needsLayout. <em>Core Graphics</em> concepts: context, path, current position, adding to path, stroke, fill.</li>
</ul>
<h3>Prerequisites</h3>
<ul>
<li>You need an Intel based Mac. Unfortunately iOS development cannot be done on a PC or on a Linux machine.</li>
<li>You need to have at least some basic programming experience, preferably in an object oriented language. To understand Objective C is useful to read the language guide <a title="The Objective C Programming Guide" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjectiveC/index.html" target="_blank">here</a>.</li>
<li>Download and install the latest iPhone SDK from <a href="http://developer.apple.com/iphone/program/download.html" target="_blank">here</a>. For this you will need to  become a Registered iOS Developer with Apple’s iOS Dev Center.</li>
</ul>
<p><strong>Note:</strong> The SDK is a free download for any registered iPhone developer, and you do not need to join (yet) the iOS Developer Program which costs $99/year. You may want to join the iOS Developer Program later when you decide to try your applications on real devices (iPhone, iPod Touch or iPad), but for now you can try everything on the iPhone/iPad Simulator which runs on your Mac.</p>
<h1>Tutorial</h1>
<p>We will create a small application with a custom made view that displays a regular polygon with a variable number of vertices (between 3 and 20). The application will also display the number of vertices, and will allow the user to change the number of vertices by moving a slider control on the screen.</p>
<h3>Step 1 – Create a new project called Polygon</h3>
<ol>
<li>Make sure that the latest iOS SDK is installed, and launch XCode.</li>
<li>Select the menu “File/New/New Project…”.</li>
<li>On the left column of the New Project dialog select “Application” under the “iOS” section title. In the right window select “Single View Application”. Press “Next”.</li>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-685" title="Choose iOS Application Template" src="http://www.dynamic-leap.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-11-at-12.59.02-AM.png" alt="Choose iOS Application Template" width="520" height="351" /></p>
<li>Type “Polygon” as the Product Name, select &#8220;iPhone&#8221; for Device Family, make sure &#8220;Use Storyboard&#8221; is not checked and &#8220;Use Automatic Reference Counting&#8221; is checked. Press &#8220;Next&#8221;.</li>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-687" title="Choose options for your new project" src="http://www.dynamic-leap.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-11-at-1.17.58-AM.png" alt="Choose options for your new project" width="520" height="351" /></p>
<li>On the next screen choose where you want to create your project and press &#8220;Create&#8221;</li>
</ol>
<p><strong>Note: </strong>Use the exact spelling and case for the project name, so you can just copy and paste code later in the tutorial.<br />
<img class="alignnone size-full wp-image-688" title="Run button" src="http://www.dynamic-leap.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-11-at-1.24.57-AM.png" alt="Run button" width="30" height="30" /><br />
Build and run the application by pressing the Run button on the left of XCode&#8217;s top toobar. You should get no errors and the screen should show a gray view taking over all the iPhone screen except for the status bar.</p>
<p>In the next step we will implement a custom view class that can draw a polygon on the screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dynamic-leap.com/tutorials/beginner-iphone-tutorial-%e2%80%93-polygon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Map Kit Tutorial</title>
		<link>http://www.dynamic-leap.com/tutorials/iphone-map-kit-tutorial/</link>
		<comments>http://www.dynamic-leap.com/tutorials/iphone-map-kit-tutorial/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 23:40:24 +0000</pubDate>
		<dc:creator>Dynamic Leap</dc:creator>
		
		<guid isPermaLink="false">http://test.dynamic-leap.com/?post_type=tutorials&#038;p=108</guid>
		<description><![CDATA[Here is a quick iPhone Map Kit tutorial that I showed during my presentation at the Vancouver iPhone developers meetupin September 2009. I have changed a few things based on the audience’s feedback. Step 1 – Show the World Map Create a new iPhone OS project: a Navigation based Application called “MapDemo”. Remove the RootViewController.xib [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick iPhone Map Kit tutorial that I showed during my presentation at the <a href="http://www.meetup.com/Vancouver-iPhone-developers/calendar/11272703/">Vancouver iPhone developers meetup</a>in September 2009. I have changed a few things based on the audience’s feedback.</p>
<h2>Step 1 – Show the World Map</h2>
<ol>
<li>Create a new iPhone OS project: a Navigation based Application called “MapDemo”.</li>
<li>Remove the RootViewController.xib file from the project (choose “Also move to trash”).</li>
<li>Change the base class of the RootViewContoller in RootViewController.h to UIViewController.</li>
<li>Add the MapKit framework. Click the Project-&gt;Edit Active Target “MapDemo” menu. From the Target Info dialog choose the General tab, and click the “+” button on the bottom. Select the MapKit framework and add it.<br />
<img title="Add the MapKit framework" src="http://iphonebcit.files.wordpress.com/2009/09/step1-4.png" alt="Add the MapKit framework" width="450" height="515" /></li>
<li>Double click to open MainWindow.xib in Interface Builder. Set the nib window to list view mode, expand the tree and select RootViewContoller.<br />
<img title="NIB window in list view mode" src="http://iphonebcit.files.wordpress.com/2009/09/step1-5-1.png" alt="NIB window in list view mode" width="351" height="559" />In the Attributes Inspector window remove the NIB name.<img title="Attributes Inspector" src="http://iphonebcit.files.wordpress.com/2009/09/step1-5-2.png" alt="Attributes Inspector" width="351" height="460" /></li>
<li>In the MainWindow.xib window select Navigation Controller, and in the Attributes Inspector uncheck Shows Navigation bar.<br />
<img title="Attribute Inspector" src="http://iphonebcit.files.wordpress.com/2009/09/step1-6.png" alt="Attribute Inspector" width="328" height="440" /></li>
<li>Drag and drop a map view on top of the Navigation Controller view.<br />
<img title="Navigation Controller View" src="http://iphonebcit.files.wordpress.com/2009/09/step1-7.png" alt="Navigation Controller View" width="385" height="561" /></li>
<li>Save, compile and run.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.dynamic-leap.com/tutorials/iphone-map-kit-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

