<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5431167820969678262</id><updated>2024-11-06T08:23:50.597+05:30</updated><category term="Titanium Studio"/><category term="Appcelerator"/><category term="iOS"/><category term="Titanium SDK"/><category term="Objective-C"/><category term="Storyboard"/><category term="Xcode"/><category term="iOS 5"/><category term="mobile"/><category term="mobile framework"/><category term="APNS"/><category term="Apple push notification"/><category term="Bitly API"/><category term="Extending Titainium"/><category term="Hacking"/><category term="Hacking Titanium SDK"/><category term="JSON"/><category term="Push notification"/><category term="SDK"/><category term="TCAD"/><category term="TableView"/><category term="WebService"/><category term="commonJS"/><category term="iOS module"/><category term="iPhone"/><category term="rhoMobile"/><category term="rhodes"/><category term="twitter"/><category term="xcode with Appcelerator"/><title type='text'>iOS Muncher</title><subtitle type='html'>Tips and tricks in iOS, Titanium, Appcelerator</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-6208238240092535998</id><published>2012-12-26T00:26:00.001+05:30</published><updated>2013-08-13T17:44:05.549+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS 5"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="Storyboard"/><category scheme="http://www.blogger.com/atom/ns#" term="Xcode"/><title type='text'>Implementing StoryBoard in iOS- part II</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In this part we will continue to build our Todo Application using storyboard.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In our previous &lt;a href=&quot;http://iosmuncher.blogspot.in/2012/12/implementing-storyboard-in-ios-part-i.html&quot; target=&quot;_blank&quot;&gt;part&lt;/a&gt; we created a simple Tab Bar based application with two tabs, each having a tableView in it to hold our task list and our done task.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Introduction to Segues&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Segue defines navigation in your Storyboard. It indicates how to get from one point to another. You usually create a segue by picking an event source(can be a button or a tableView cell) and choosing a scene to transition to.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We can also choose the type of animation we want to use. All apple built-in animations are available for us to use by making some simple clicks. Additionally we can even create our own custom animations for custom segues.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Lets quickly use segues in out simple Todo application.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select the root folder in the project explorer, right click and select New file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select Objective-C class file and name it as &lt;i&gt;&lt;b&gt;AddTaskViewController.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now go to your storyboard and drag a new View Controller to it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add a textField to it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1i-Uh9HwSnIUgls3e9sQugG09M-yGqiasfuL-PwTmsKnoJh8Vic37r6bm-klb7IsJP2ZSPZBPYoRaicW9obaUOSdRLSmaSxRIke9OFZhJuQBVpVSc3gsFIvWV1e1Qe6G_Rse0RmTA53Dr/s1600/addtask.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1i-Uh9HwSnIUgls3e9sQugG09M-yGqiasfuL-PwTmsKnoJh8Vic37r6bm-klb7IsJP2ZSPZBPYoRaicW9obaUOSdRLSmaSxRIke9OFZhJuQBVpVSc3gsFIvWV1e1Qe6G_Rse0RmTA53Dr/s400/addtask.png&quot; width=&quot;230&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now lets link this View Controller to our &lt;i&gt;&lt;b&gt;AddTaskViewController&lt;/b&gt;&lt;/i&gt; class file, go to the identity inspector and in the class choose AddTaskViewController.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;(If you feel any problem here, refer &lt;a href=&quot;http://iosmuncher.blogspot.in/2012/12/implementing-storyboard-in-ios-part-i.html&quot; target=&quot;_blank&quot;&gt;part-I&lt;/a&gt; of this tutorial)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We want our Add task screen to be opened when I I click on the add button on My Task screen. Here we will create a segue which will make this job super simple.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;On your My Task screen, select the add button and Ctrl+click and drag it to the Add Task screen, select push from the black modal window.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXjvhhW0t4ePq-TcCPtNilwz2Fj2o5b8P36zykwvt0t4fImwqaK28uafjsjOoGh9Kwp7N1XF244Wd5gH1HjuOXn_H3LcZQIE9elle7JzRU9C88SglKbOaqgZBFuITwKhIeNE6CwOF-6fGs/s1600/segue.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXjvhhW0t4ePq-TcCPtNilwz2Fj2o5b8P36zykwvt0t4fImwqaK28uafjsjOoGh9Kwp7N1XF244Wd5gH1HjuOXn_H3LcZQIE9elle7JzRU9C88SglKbOaqgZBFuITwKhIeNE6CwOF-6fGs/s400/segue.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Select the segue and in the attribute inspector give this segue an Identifier, it will distinguish one segue form another.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We name our segue Identifier as &lt;i&gt;&lt;b&gt;AddTask.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So to open a screen with segue is just simple as that.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;now we have added our Add task also which was the last screen for our Application.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now to show another screen with segue Storyboarding comes with an API. A method called &lt;i&gt;prepareForSegue:sender: &lt;/i&gt;&amp;nbsp;on every UIViewController, and it is intended to be overridden. We can write our own code here that will take effect whenever each segue fires.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So in your &lt;span style=&quot;color: #990000;&quot;&gt;MyTaskViewController.m &lt;/span&gt;we will add this method&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;void&lt;/span&gt;) prepareForSegue:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UIStoryboardSegue&lt;/span&gt; *)segue sender:(&lt;span style=&quot;color: #bb23a0;&quot;&gt;id&lt;/span&gt;)sender&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; ([[segue &lt;/span&gt;identifier&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;isEqualToString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;AddTask&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[segue &lt;/span&gt;destinationViewController&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;setDelegate&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Your &lt;span style=&quot;color: #990000;&quot;&gt;AddTaskViewController.h&lt;/span&gt; should look like this, add&amp;nbsp;necessary&amp;nbsp;codes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #77482c;&quot;&gt;#import &lt;/span&gt;&amp;lt;UIKit/UIKit.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #508187; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;@protocol&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;AddTaskViewControllerDelegate&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #733aa7; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;@interface&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; AddTaskViewController : &lt;/span&gt;UIViewController&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;UITextFieldDelegate&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #508187; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;@property&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;weak&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;nonatomic&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;AddTaskViewControllerDelegate&lt;span style=&quot;color: black;&quot;&gt; &amp;gt;delegate;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UITextField&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *AddTaskTextField;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *taskAdded;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;weak&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *addView;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;IBAction&lt;/span&gt;)closeModal:(&lt;span style=&quot;color: #bb23a0;&quot;&gt;id&lt;/span&gt;)sender;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;@protocol&lt;/span&gt; AddTaskViewControllerDelegate &amp;lt;&lt;span style=&quot;color: #733aa7;&quot;&gt;NSObject&lt;/span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;-(&lt;span style=&quot;color: #bb23a0;&quot;&gt;void&lt;/span&gt;)AddTaskViewControllerDidDone: (&lt;span style=&quot;color: #508187;&quot;&gt;AddTaskViewController&lt;/span&gt; *) controller taskAdded:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSString&lt;/span&gt; *)task;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here we have created a protocol&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #508187; font-family: Menlo;&quot;&gt;AddTaskViewControllerDelegate &lt;/span&gt;&lt;span style=&quot;font-family: Menlo;&quot;&gt;and this protocol implements a function&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;i&gt;AddTaskViewControllerDidDone.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;In your &lt;span style=&quot;color: #990000;&quot;&gt;AddTaskViewController.m &lt;/span&gt;Add these two functions&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;IBAction&lt;/span&gt;)closeModal:(&lt;span style=&quot;color: #bb23a0;&quot;&gt;id&lt;/span&gt;)sender&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;dismissViewControllerAnimated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;completion&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #77482c; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#pragma mark ---- &amp;lt;UITextFieldDelegate&amp;gt; Methods&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;BOOL&lt;/span&gt;)textFieldShouldReturn:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITextField&lt;/span&gt; *)textField&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #008516; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// the user pressed the return, so dismiss the keyboard&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #508187;&quot;&gt;taskAdded&lt;/span&gt; = textField.&lt;span style=&quot;color: #733aa7;&quot;&gt;text&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #32595d; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #508187;&quot;&gt;delegate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;AddTaskViewControllerDidDone&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;taskAdded&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #508187;&quot;&gt;taskAdded&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[textField &lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;return&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;YES&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;In our &lt;b&gt;MyTaskViewController &lt;/b&gt;class we will use this protocol.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;Now your &lt;span style=&quot;color: #990000;&quot;&gt;MyTaskViewController.h &lt;/span&gt;should look like this-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Menlo;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #77482c;&quot;&gt;#import &lt;/span&gt;&amp;lt;UIKit/UIKit.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #77482c;&quot;&gt;#import &lt;/span&gt;&quot;AddTaskViewController.h&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #508187; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #733aa7; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;@interface&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; MyTaskViewController : &lt;/span&gt;UIViewController&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;UITableViewDelegate&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;UITableViewDataSource&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #508187;&quot;&gt;AddTaskViewControllerDelegate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;weak&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UIBarButtonItem&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *AddTask;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *TaskListTable;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;NSMutableArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *MyTaskList;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We have added a NSMutableArray *MyTaskList to hold my task.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In your &lt;span style=&quot;color: #990000;&quot;&gt;MyTaskViewController.m&lt;/span&gt; we will implement the protocol function, our table view delegate functions.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #77482c; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#pragma mark ------------- &amp;lt;UITableViewDelegate&amp;gt; Methods------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #733aa7;&quot;&gt;NSInteger&lt;/span&gt;)numberOfSectionsInTableView:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt; *)tableView&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #3523d5;&quot;&gt;1&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #733aa7;&quot;&gt;NSInteger&lt;/span&gt;)tableView:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt; *)tableView numberOfRowsInSection:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSInteger&lt;/span&gt;)section&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;return&lt;/span&gt; [&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #508187;&quot;&gt;MyTaskList&lt;/span&gt; &lt;span style=&quot;color: #401a7f;&quot;&gt;count&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableViewCell&lt;/span&gt; *)tableView:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt; *)tableView cellForRowAtIndexPath:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #733aa7;&quot;&gt;NSString&lt;/span&gt; *CellIdentifier = &lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;Cell&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #733aa7;&quot;&gt;UITableViewCell&lt;/span&gt; *cell = [tableView &lt;span style=&quot;color: #401a7f;&quot;&gt;dequeueReusableCellWithIdentifier&lt;/span&gt;:CellIdentifier];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;if&lt;/span&gt; (cell == &lt;span style=&quot;color: #bb23a0;&quot;&gt;nil&lt;/span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cell = [[&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableViewCell&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;initWithStyle&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;UITableViewCellStyleDefault&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;reuseIdentifier&lt;span style=&quot;color: black;&quot;&gt;:CellIdentifier];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #733aa7;&quot;&gt;NSString&lt;/span&gt; *task = [&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #508187;&quot;&gt;MyTaskList&lt;/span&gt; &lt;span style=&quot;color: #401a7f;&quot;&gt;objectAtIndex&lt;/span&gt;:indexPath.&lt;span style=&quot;color: #733aa7;&quot;&gt;row&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #733aa7; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;cell.&lt;/span&gt;textLabel&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;text&lt;span style=&quot;color: black;&quot;&gt; = [&lt;/span&gt;NSString&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #401a7f;&quot;&gt;stringWithFormat&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;%@&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,task];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb23a0;&quot;&gt;return&lt;/span&gt; cell;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;void&lt;/span&gt;)tableView:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt; *)tableView commitEditingStyle:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableViewCellEditingStyle&lt;/span&gt;)editingStyle forRowAtIndexPath:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (editingStyle == &lt;/span&gt;UITableViewCellEditingStyleDelete&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #508187;&quot;&gt;MyTaskList&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;removeObjectAtIndex&lt;span style=&quot;color: black;&quot;&gt;:indexPath.&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;[tableView &lt;/span&gt;deleteRowsAtIndexPaths&lt;span style=&quot;color: black;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;NSArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;arrayWithObject&lt;span style=&quot;color: black;&quot;&gt;:indexPath] &lt;/span&gt;withRowAnimation&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;UITableViewRowAnimationFade&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;void&lt;/span&gt;)tableView:(&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt; *)tableView didSelectRowAtIndexPath:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSIndexPath&lt;/span&gt; *)indexPath&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f; font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UIAlertView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *confirmTaskDone = [[&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UIAlertView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;initWithTitle&lt;span style=&quot;color: black;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #508187;&quot;&gt;MyTaskList&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;objectAtIndex&lt;span style=&quot;color: black;&quot;&gt;:indexPath.&lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;message&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;Choose Action&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;delegate&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;cancelButtonTitle&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;Cancel&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;otherButtonTitles&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d0271c;&quot;&gt;@&quot;Done&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #508187;&quot;&gt;currentRow&lt;/span&gt; = indexPath.&lt;span style=&quot;color: #733aa7;&quot;&gt;row&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; [confirmTaskDone &lt;span style=&quot;color: #401a7f;&quot;&gt;show&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;AddTaskViewControllerDelegate Method&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo;&quot;&gt;
&lt;span style=&quot;color: #77482c; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #77482c; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;#pragma mark ---------------- &amp;lt;AddTaskViewControllerDelegate&amp;gt; Methods&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;- (&lt;span style=&quot;color: #bb23a0;&quot;&gt;void&lt;/span&gt;)AddTaskViewControllerDidDone:(&lt;span style=&quot;color: #508187;&quot;&gt;AddTaskViewController&lt;/span&gt; *)controller taskAdded:(&lt;span style=&quot;color: #733aa7;&quot;&gt;NSString&lt;/span&gt; *)task&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #508187;&quot;&gt;MyTaskList&lt;/span&gt; &lt;span style=&quot;color: #401a7f;&quot;&gt;addObject&lt;/span&gt;:task];&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #401a7f;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #401a7f;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;dismissViewControllerAnimated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;completion&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #508187;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #bb23a0;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;TaskListTable&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #401a7f;&quot;&gt;reloadData&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;min-height: 13px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;And we are done.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1wCqVBZy1UhETi7CrH_pynECHb60-8efhyb1E4BzCJGxgb9TbmedGgXIz__8zr3x3z_YjPvhpLmPsv3AxeOncis5BMZASdja6t68eJWRdpTmAdqXB2U-kbtHk9jtaEZVJB_hkfdCsygX/s1600/deleteTask.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1wCqVBZy1UhETi7CrH_pynECHb60-8efhyb1E4BzCJGxgb9TbmedGgXIz__8zr3x3z_YjPvhpLmPsv3AxeOncis5BMZASdja6t68eJWRdpTmAdqXB2U-kbtHk9jtaEZVJB_hkfdCsygX/s400/deleteTask.png&quot; width=&quot;217&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_CUS0EZ8mBYmcVHBhTW7gra1OiMHniHlFQzbXaDWbEzEJKjrQTfykV9JI9vYsF0anrCvKj_jwWVolbyb64ygi045osbcYXa7nS9nRSpCKK3dX0hnfCPl3hk8mNdxD0QkvoosezIEOfkyx/s1600/taskDone.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_CUS0EZ8mBYmcVHBhTW7gra1OiMHniHlFQzbXaDWbEzEJKjrQTfykV9JI9vYsF0anrCvKj_jwWVolbyb64ygi045osbcYXa7nS9nRSpCKK3dX0hnfCPl3hk8mNdxD0QkvoosezIEOfkyx/s400/taskDone.png&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The complete code for our Todo Application, where you can see your done task too in the second tab is here on&amp;nbsp;&lt;a href=&quot;https://github.com/ajeetpratap/iOSMuncherTodoApp&quot; target=&quot;_blank&quot;&gt;Github&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Thanks, happy Storyboarding.. :)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/6208238240092535998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/12/implementing-storyboard-in-ios-part-ii.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/6208238240092535998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/6208238240092535998'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/12/implementing-storyboard-in-ios-part-ii.html' title='Implementing StoryBoard in iOS- part II'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1i-Uh9HwSnIUgls3e9sQugG09M-yGqiasfuL-PwTmsKnoJh8Vic37r6bm-klb7IsJP2ZSPZBPYoRaicW9obaUOSdRLSmaSxRIke9OFZhJuQBVpVSc3gsFIvWV1e1Qe6G_Rse0RmTA53Dr/s72-c/addtask.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-4342277264224578173</id><published>2012-12-26T00:23:00.000+05:30</published><updated>2013-08-13T17:44:05.547+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS 5"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="Storyboard"/><category scheme="http://www.blogger.com/atom/ns#" term="Xcode"/><title type='text'>Implementing StoryBoard in iOS- part I</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;JA&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
   &lt;w:UseFELayout/&gt;
  &lt;/w:Compatibility&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;&amp;#45;-&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;276&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;

&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
 mso-para-margin:0cm;
 mso-para-margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:Cambria;
 mso-ascii-font-family:Cambria;
 mso-ascii-theme-font:minor-latin;
 mso-hansi-font-family:Cambria;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;



&lt;!--StartFragment--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpFirst&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;With the release of iOS 5, Apple
updated the iOS SDK with more than 1500 APIs, and Storyboard is one of the most
fascinating.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;o:p&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Introduction&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Storyboarding allows one to lay out
the workflow of your app using the new Storyboards feature built into the
design tools of Xcode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Apps that use Navigation and tab Bars
to transition between Views, Storyboard ease the development by managing the
View Controllers for you.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You can specify the transitions and
segues that are used when switching between the Views without having to code
them by hand.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Storyboard enables you to interact
with all the screens in your application without the cumbersome code you have
to write for the transitions between the screens and the control used to
trigger the transitions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Storyboards have a number of
advantages over regular nibs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel2CxSpFirst&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;With a storyboard you have a better conceptual
overview of all the screens in your app and the connections between them. It’s
easier to keep track of everything because the entire design is in a single
file, rather than spread out over many separate nibs.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The storyboard describes the transitions between
the various screens. These transitions are called “segues” and you create them
by simply ctrl-dragging from one view controller to the next. With the help of segues you have to less take care of UI development.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: 7pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Storyboards make working with table views a lot
easier with the new prototype cells and static cells features. You can design
your table views almost completely in the storyboard editor, something else
that cuts down on the amount of code you have to write.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpFirst&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;With many advantages storyboards do some
limitations. The Storyboard Editor isn’t as powerful as Interface Builder yet,
there are a few things IB can do that the Storyboard Editor unfortunately
can’t. You also need a big monitor, especially when you write iPad apps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;If you are a person who loves to
create entire UI programmatically, then storyboards are probably not for you.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below Image shows storyboard in action.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFJP_Mb3w2L4vz-sVYaEKSOekranj1rEjZx0NrjB7m3m8yU-6ZqvGuDfzT1PN_mJZO0nczsh0q5S-IeI8XgBexwMdiEHr8wz0Wsd5QkPw8qMB_jpqn0pSsobx3_iDitfDs91ACwG6kP57R/s1600/tumblr_m4ew9sNRbK1qjpqn9o1_1280.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;391&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFJP_Mb3w2L4vz-sVYaEKSOekranj1rEjZx0NrjB7m3m8yU-6ZqvGuDfzT1PN_mJZO0nczsh0q5S-IeI8XgBexwMdiEHr8wz0Wsd5QkPw8qMB_jpqn0pSsobx3_iDitfDs91ACwG6kP57R/s400/tumblr_m4ew9sNRbK1qjpqn9o1_1280.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will be creating a simple Todo application with storyboard.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpMiddle&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Get Started&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Fire up your&amp;nbsp;Xcode, Create a new single View Application, name it as myTodo and don&#39;t forget to select use storyboard and use Automatic Reference Counting options.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcy1_Hp2glzrc0wXvfhRFv5MEuMgT86nC6kM7sHS2hlfNvc1Y4QRIeuRmbY7BA9ISPj1NkAghGpbyiiFHauMVPHtLZMaqOLJkUqSniVGh1bqFkotMg3BMMpi-1UCvjw0316mv1aVHfxfpz/s1600/createProj.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcy1_Hp2glzrc0wXvfhRFv5MEuMgT86nC6kM7sHS2hlfNvc1Y4QRIeuRmbY7BA9ISPj1NkAghGpbyiiFHauMVPHtLZMaqOLJkUqSniVGh1bqFkotMg3BMMpi-1UCvjw0316mv1aVHfxfpz/s400/createProj.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The .storyboard file in your&amp;nbsp;project explorer is your storyboard file and it looks very similar to the old .xib file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRWtdTDiPd1dqnlJRFl3DVFWTwPVyA2MbdB6-27_FDTHsn2bVKWTxG02ry9NAkdVdenvqiwakvLLk4u616GjU8jbgw8hSMJc4N7q0AECMM_W0Z6d9cxVruNwGDTZXM6qnTsprpN_ls8DBz/s1600/mainPage.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRWtdTDiPd1dqnlJRFl3DVFWTwPVyA2MbdB6-27_FDTHsn2bVKWTxG02ry9NAkdVdenvqiwakvLLk4u616GjU8jbgw8hSMJc4N7q0AECMM_W0Z6d9cxVruNwGDTZXM6qnTsprpN_ls8DBz/s400/mainPage.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;There are two main concepts in Storyboarding:scene and segue.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;i&gt;Scene&lt;/i&gt; is a View Controller that just represents a screen in an app.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and &lt;i&gt;Segue&lt;/i&gt; defines navigation in your storyboard. It indicates how to get from point A to B.(we will be covering segues in part II)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The difference you will see is the arrow&amp;nbsp;pointing to a view and a black container below the main view that says &quot;View Controller&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As the storyboard can have many view controllers so there must be a view controller which shows first when the application gets started, hence the arrow points to the view controller which shows first when the application starts.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You can play a little bit with the storyboard by dragging and dropping the different controls on the view. Its same as your old .xib.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;column&quot;&gt;
&lt;span style=&quot;font-family: &#39;HelveticaNeue&#39;; font-size: 10.000000pt;&quot;&gt;
&lt;/span&gt;

   &lt;span style=&quot;font-family: &#39;HelveticaNeue&#39;; font-size: 10.000000pt;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Let&#39;s start our ToDo application. Our App will be a Tab bar based Application, in one tab we can see the list of our task. We can add a new task, delete a task and mark our task as done.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In our second Tab we can see the list of our task which we have marked as done.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here is how our app will look at the end.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-GjeEgb-ejV2RKLLs01MRc8fhpKXovnVUIyopw_Rsi4BMDYU1WjJPz-J3LuhaD4lOOeOAGaepQhLZ_kd0EywdbEA8ZI4wAPs6DVe6Hyz4YtYLX_bW1xLtx-sxoADq9gGI2Kf46xJ4KVZw/s1600/tab1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-GjeEgb-ejV2RKLLs01MRc8fhpKXovnVUIyopw_Rsi4BMDYU1WjJPz-J3LuhaD4lOOeOAGaepQhLZ_kd0EywdbEA8ZI4wAPs6DVe6Hyz4YtYLX_bW1xLtx-sxoADq9gGI2Kf46xJ4KVZw/s400/tab1.png&quot; width=&quot;216&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;text-indent: 0cm;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUhJZ7pslxRhsdh6O0oUY9dGmC5NN6McVthGg86WsfJJMhQbZ2od6iKci6qEfpx-uzms4Aw5gT4D6HMcEpRkei3Kht-b4sNb49CjeiouW9wmDYZvWwKv2HYJFnZ6CB88wyCGIGghQANB2f/s1600/tab2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center; text-indent: 0cm;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUhJZ7pslxRhsdh6O0oUY9dGmC5NN6McVthGg86WsfJJMhQbZ2od6iKci6qEfpx-uzms4Aw5gT4D6HMcEpRkei3Kht-b4sNb49CjeiouW9wmDYZvWwKv2HYJFnZ6CB88wyCGIGghQANB2f/s400/tab2.png&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As this is a Tab Bar application so lets add the tab Bar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Go to Editor -&amp;gt; Embed -&amp;gt;Tab Bar controller.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This will add the Tab Bar to the storyboard. You can see the arrow is now pointing towards the tab bar and your tab bar is linked to the View Controller.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We need one more Tab for our tab bar, so drag a View Controller on the canvas.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now from the Tab Bar Ctrl+drag to the newly added View controller, a black popup will appear, choose view controllers.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjISG3TNfmjbmUkmSEZcKm5oimICzk7NuRataKwLYslaH-mMnxi0Y0Bd0pudHlAiDMSLcuBRzLacYF3tL50aY1WBeeq3YktDCvcxeT2YChlFZX20DRn3pRFaCj4kwD3FM621eydjnXvytAC/s1600/addnewtab.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjISG3TNfmjbmUkmSEZcKm5oimICzk7NuRataKwLYslaH-mMnxi0Y0Bd0pudHlAiDMSLcuBRzLacYF3tL50aY1WBeeq3YktDCvcxeT2YChlFZX20DRn3pRFaCj4kwD3FM621eydjnXvytAC/s400/addnewtab.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;After selecting view controller your application will be linked with your Tab bar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now rearrange your View Controllers as you like.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Drag Navigation Bar control on both your View Controllers. Double click at the center of navigation bar to add a title. Add title as My Task on the first View Controller and task Done on the second View Controller.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuwPRt0O_jfIi6KznHcqBzZlgTtt_k2-b61yxMaAGwjXppsCeJdblgsRq2qmvsw-fTGJr5-5PKppmKxuRFwWj_v_qWtIcQK9c6LICeqFI7D5ouSFGqH9xIaqCeDCpotP5woZxSj8WRT8mv/s1600/addnav.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuwPRt0O_jfIi6KznHcqBzZlgTtt_k2-b61yxMaAGwjXppsCeJdblgsRq2qmvsw-fTGJr5-5PKppmKxuRFwWj_v_qWtIcQK9c6LICeqFI7D5ouSFGqH9xIaqCeDCpotP5woZxSj8WRT8mv/s400/addnav.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Add a BarButtonItem to My Tasks screen and add a TableView to both the views, make sure your screen looks like this.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw2tD38xwg7zCU09vpX62iYLP72lxvGQGinEn2oYNeepe_z31BPCXQ0GA8RrqGLLUtWDhNsVQgxXJLko4UvSwgFuvzlM1QH-Ibt88uBJUK33f69VF5uKOterLQCnuQstTkyhEp_ulATXiH/s1600/bothscreen.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;337&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw2tD38xwg7zCU09vpX62iYLP72lxvGQGinEn2oYNeepe_z31BPCXQ0GA8RrqGLLUtWDhNsVQgxXJLko4UvSwgFuvzlM1QH-Ibt88uBJUK33f69VF5uKOterLQCnuQstTkyhEp_ulATXiH/s400/bothscreen.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoteLevel1CxSpLast&quot; style=&quot;margin-left: 0cm; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;Select your root folder in the project explorer on the left side, delete the existing ViewController class file from it. Right click it and select add file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;Select Objective-C class file and name it as &lt;i&gt;FinishTaskViewController.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;Repeat the same step to add another file named &lt;i&gt;MyTaskViewController.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now select your Task Done Controller and in the identity inspector assign FinishTaskViewController class to it.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF3txeDnAnZiQZwSUu5RVpwi3Lx8KSSQZ83bI7JwpiiaVENLGKCmpqn3rMbYNp8JZprd8W6CM7CHFubowQGDKjvPh59f08g_mYWJkwaUE9KfYLc5ic6yorctk3ZMRMUAUms6z2hwrZhVd8/s1600/finishTask.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF3txeDnAnZiQZwSUu5RVpwi3Lx8KSSQZ83bI7JwpiiaVENLGKCmpqn3rMbYNp8JZprd8W6CM7CHFubowQGDKjvPh59f08g_mYWJkwaUE9KfYLc5ic6yorctk3ZMRMUAUms6z2hwrZhVd8/s400/finishTask.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Do the same for the My Task Controller, assign MyTaskViewController to it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;So Till now we have created a Tab Bar with two tabs in it, added a table View in both the tab to show our data.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;i&gt;&quot;Till now we have not wrote a single line of code.&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Lets make sure our both classes i.e. MyTaskViewController and FinishTaskViewController looks like this.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;MyTaskViewController.h&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #77482c;&quot;&gt;#import &lt;/span&gt;&amp;lt;UIKit/UIKit.h&amp;gt;&lt;/div&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #bb23a0; text-indent: 0cm;&quot;&gt;@interface&lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;&amp;nbsp;UIViewController&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;UITableViewDelegate&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;UITableViewDataSource&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;weak&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UIBarButtonItem&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *AddTask;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *TaskListTable;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
@end&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As we have added the tableView in it so we will add tableView delegates(&lt;/span&gt;&lt;span style=&quot;color: #733aa7; font-family: Menlo; text-indent: 0cm;&quot;&gt;UITableViewDelegate&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; text-indent: 0cm;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #733aa7; font-family: Menlo; text-indent: 0cm;&quot;&gt;UITableViewDataSource&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;&amp;nbsp;) to our View Controller.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;MyTaskViewController.m&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif; text-indent: 0cm;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Leave this file as it is.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;FinishTaskViewController.h&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #d0271c; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #77482c;&quot;&gt;#import &lt;/span&gt;&amp;lt;UIKit/UIKit.h&amp;gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #508187; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #bb23a0; text-indent: 0cm;&quot;&gt;@interface&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt; FinishTaskViewController : &lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;UIViewController&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;UITableViewDataSource&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #733aa7; text-indent: 0cm;&quot;&gt;UITableViewDelegate&lt;/span&gt;&lt;span style=&quot;color: black; text-indent: 0cm;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
@property&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;strong&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;nonatomic&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;IBOutlet&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #733aa7;&quot;&gt;UITableView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *FinishTaskTable;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #bb23a0; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;text-indent: 0cm;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;TableView delegates will be added here too.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: Verdana, sans-serif;&quot;&gt;FinishTaskViewController.m&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Leave this file as it is.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;As for now we are good to go to run our application.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;We will see a simple Tab Bar based application with table View in it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This is how it will look,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwjH80tUyvlKHj-2DAKs5SrNlJfGWRvX6V7aSByhEKa_g-5eo8cbDvu2E5blzIGG3Mu_ADcvA_aaM8Ovmj1ccXwzZ9fHBvIrp4pPoU5JgRqD3jEMcspUJOzteN377nzxO6D9xITxfEEAAr/s1600/App.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwjH80tUyvlKHj-2DAKs5SrNlJfGWRvX6V7aSByhEKa_g-5eo8cbDvu2E5blzIGG3Mu_ADcvA_aaM8Ovmj1ccXwzZ9fHBvIrp4pPoU5JgRqD3jEMcspUJOzteN377nzxO6D9xITxfEEAAr/s400/App.png&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;What next?&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here we have created our application using storyboard, we will be adding, deleting task in the next part-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-indent: 0cm;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://iosmuncher.blogspot.in/2012/12/implementing-storyboard-in-ios-part-ii.html&quot; target=&quot;_blank&quot;&gt;Implementing StoryBoard in iOS- part II&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/4342277264224578173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/12/implementing-storyboard-in-ios-part-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/4342277264224578173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/4342277264224578173'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/12/implementing-storyboard-in-ios-part-i.html' title='Implementing StoryBoard in iOS- part I'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFJP_Mb3w2L4vz-sVYaEKSOekranj1rEjZx0NrjB7m3m8yU-6ZqvGuDfzT1PN_mJZO0nczsh0q5S-IeI8XgBexwMdiEHr8wz0Wsd5QkPw8qMB_jpqn0pSsobx3_iDitfDs91ACwG6kP57R/s72-c/tumblr_m4ew9sNRbK1qjpqn9o1_1280.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-3278362956296864519</id><published>2012-07-19T00:17:00.001+05:30</published><updated>2012-07-19T00:18:41.096+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="TCAD"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><title type='text'>Now a Titanium Certified Application Developer.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
I am happy to announce that I have qualified the TCAD(Titanium Certified Application Developer) certification.&lt;br /&gt;
I want to thank wiki.appcelerator for making me understand the Titanium concepts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg31DX76ONcTTknGqvrfn_AMFQXfLswjEa6m_cOZr70DqssQnh8UyVpw8FkdABqyZUtoaD7duERgG5UjXuzanZ7iU8QttQwbs4EKTZfc5uJWXuf5vox7_cdVJN-b1Pqw2M9OmLpuhUg9b6u/s1600/TCADINTEGRATIONMKT_CertificateTCAD201101_20120718_042000.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg31DX76ONcTTknGqvrfn_AMFQXfLswjEa6m_cOZr70DqssQnh8UyVpw8FkdABqyZUtoaD7duERgG5UjXuzanZ7iU8QttQwbs4EKTZfc5uJWXuf5vox7_cdVJN-b1Pqw2M9OmLpuhUg9b6u/s400/TCADINTEGRATIONMKT_CertificateTCAD201101_20120718_042000.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/3278362956296864519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/07/now-titanium-certified-application.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3278362956296864519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3278362956296864519'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/07/now-titanium-certified-application.html' title='Now a Titanium Certified Application Developer.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg31DX76ONcTTknGqvrfn_AMFQXfLswjEa6m_cOZr70DqssQnh8UyVpw8FkdABqyZUtoaD7duERgG5UjXuzanZ7iU8QttQwbs4EKTZfc5uJWXuf5vox7_cdVJN-b1Pqw2M9OmLpuhUg9b6u/s72-c/TCADINTEGRATIONMKT_CertificateTCAD201101_20120718_042000.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-3976937427151817143</id><published>2012-06-20T12:38:00.000+05:30</published><updated>2013-01-11T13:05:40.342+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="APNS"/><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="Apple push notification"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Push notification"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium SDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><title type='text'>Implementing APNS in Titanium-Start to End Tutorial</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Hi,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Today we will be implementing the APNS(Apple Push Notification Service) using Titanium.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;I will guide you from your client code to the server side implementation.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;








&lt;b&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Get Started&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;



&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Client Implementation&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Create a Titanium Mobile Project.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Once it is done, open your &lt;span style=&quot;color: blue;&quot;&gt;app.js&lt;/span&gt;&amp;nbsp;and paste this code&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre id=&quot;&quot; style=&quot;background-color: #f0f0f0; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHOZEFG6BcKcMRVEM9cB-7-mXcHBsbhaCS9RaTw7sRrrT8j3IiqHw7oRjoZaA4Tufmb3eo6o5ACwBuY7dw6JmbvUNyz-3IHAWvZcE-UdE9U1_-KFXZlodCPOqbCGmuTOrEe47WeHOgVxz/s320/codebg.gif); border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 550px;&quot;&gt;&lt;code id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;word-wrap: normal;&quot;&gt;Titanium.Network.registerForPushNotifications({  
   types: [  
     Titanium.Network.NOTIFICATION_TYPE_BADGE,  
     Titanium.Network.NOTIFICATION_TYPE_ALERT  
   ],  
   success:function(e)  
   {  
     var deviceToken = e.deviceToken;  
     Ti.API.info(&quot;Push notification device token is: &quot;+deviceToken);  
     alert(&#39;device token is&#39; +e.deviceToken);  
     Ti.API.info(&quot;Push notification types: &quot;+Titanium.Network.remoteNotificationTypes);  
     Ti.API.info(&quot;Push notification enabled: &quot;+Titanium.Network.remoteNotificationsEnabled);  
   },  
   error:function(e)  
   {  
     Ti.API.info(&quot;Error during registration: &quot;+e.error);  
   },  
   callback:function(e)  
   {  
     // called when a push notification is received.  
    //Titanium.Media.vibrate();  
    var data = JSON.parse(e.data);  
    var badge = data.badge;  
    if(badge &amp;gt; 0){  
     Titanium.UI.iPhone.appBadge = badge;  
    }  
    var message = data.message;  
    if(message != &#39;&#39;){  
     var my_alert = Ti.UI.createAlertDialog({title:&#39;&#39;, message:message});  
     my_alert.show();  
    }  
   }  
  });   
 }  &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;In the success function you can write your own code or call a webService where you will be sending your device token to the server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;So this was the easy part. Once this is done, we need to generate push certificate.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;




&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Generating Certificates&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;border: 0px; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The first thing you need is your Push certificates. These identify you when communicating with APNS over SSL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Generating the Apple Push Notification SSL certificate on Mac:&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;border: 0px; font-size: 16px; line-height: 24px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 1.5em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Log in to the&amp;nbsp;&lt;a data-bitly-type=&quot;bitly_hover_card&quot; href=&quot;http://developer.apple.com/iphone/manage/overview/index.action&quot; id=&quot;&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;iPhone Developer Connection Portal&lt;/a&gt;&amp;nbsp;and click App IDs&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Ensure you have created an App ID without a wildcard. Wildcard IDs cannot use the push notification service. For example, our iPhone application ID looks something like&amp;nbsp;&lt;code style=&quot;background-color: transparent; border: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;AB123346CD.com.serverdensity.iphone&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Click Configure next to your App ID and then click the button to generate a Push Notification certificate. A wizard will appear guiding you through the steps to generate a signing authority and then upload it to the portal, then download the newly generated certificate. This step is also&amp;nbsp;&lt;a data-bitly-type=&quot;bitly_hover_card&quot; href=&quot;http://developer.apple.com/iphone/prerelease/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW4&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;covered in the Apple documentation&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Import your&amp;nbsp;&lt;code style=&quot;background-color: transparent; border: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;aps_developer_identity.cer&lt;/code&gt;&amp;nbsp;into your Keychain by double clicking the&lt;code style=&quot;background-color: transparent; border: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.cer&lt;/code&gt;&amp;nbsp;file.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Launch Keychain Assistant from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called “Apple Development Push Services”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Expand this option then right click on “Apple Development Push Services” &amp;gt; Export “Apple Development Push Services ID123″. Save this as apns-dev-cert.p12 file somewhere you can access it.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Do the same again for the “Private Key” that was revealed when you expanded “Apple Development Push Services” ensuring you save it as apns-dev-key.p12 file.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;These files now need to be converted to the PEM format by executing this command from the terminal:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre style=&quot;background-color: #f0f0f0; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHOZEFG6BcKcMRVEM9cB-7-mXcHBsbhaCS9RaTw7sRrrT8j3IiqHw7oRjoZaA4Tufmb3eo6o5ACwBuY7dw6JmbvUNyz-3IHAWvZcE-UdE9U1_-KFXZlodCPOqbCGmuTOrEe47WeHOgVxz/s320/codebg.gif); border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 500px;&quot;&gt;&lt;code id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;word-wrap: normal;&quot;&gt;openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12  
 openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12  &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;9. If you wish to remove the passphrase, either do not set one when exporting/converting or execute:&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border: 0px; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem&lt;/pre&gt;
&lt;span style=&quot;background-color: transparent; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; text-align: -webkit-auto;&quot;&gt;10. Finally, you need to combine the key and cert files into a apns-dev.pem file we will use when connecting to APNS:&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background-color: #f7f7f7; border: 0px; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 15px; line-height: 21px; margin-bottom: 24px; overflow: auto; padding: 1.5em; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;cat apns-dev-cert.pem apns-dev-key-noenc.pem &amp;gt; apns-dev.pem&lt;/pre&gt;
&lt;div style=&quot;border: 0px; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
It is a good idea to keep the files and give them descriptive names should you need to use them at a later date. The same process above applies when generating the production certificate.&lt;/div&gt;
&lt;div style=&quot;border: 0px; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;At this step we are done with our certificate generation. if you are interested in detail info, then I recommend this&amp;nbsp;&lt;a href=&quot;http://blog.serverdensity.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/&quot; target=&quot;_blank&quot;&gt;Link&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;



&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Server Implementation&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;This is the .php script that you have to run in order to see push on your device.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre id=&quot;&quot; style=&quot;background-color: #f0f0f0; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHOZEFG6BcKcMRVEM9cB-7-mXcHBsbhaCS9RaTw7sRrrT8j3IiqHw7oRjoZaA4Tufmb3eo6o5ACwBuY7dw6JmbvUNyz-3IHAWvZcE-UdE9U1_-KFXZlodCPOqbCGmuTOrEe47WeHOgVxz/s320/codebg.gif); border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 550px;&quot;&gt;&lt;code id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;word-wrap: normal;&quot;&gt;&amp;lt;?php  
     $serverId = &quot;0b9214ea&quot;;  
     $name = &quot;APNS&quot;;  
     $apnsPort = 5223;  
     $passPhrase = &quot;alpha&quot;;  
     $fwrite = &quot;&quot;;  
     $sslUrl = &quot;ssl://gateway.sandbox.push.apple.com:&quot; . $apnsPort;  
     $apnsCert = &quot;&quot;;//give the apns.pem file path on your server  
     $badge = 1;  
     $message = &#39;My first Push notification&#39;;  
     $apnspayload[&#39;aps&#39;] = array (&#39;alert&#39; =&amp;gt; $message,&#39;badge&#39; =&amp;gt; $badge,&#39;sound&#39; =&amp;gt; &#39;default&#39;);  
     $payload = json_encode($apnspayload);  
      $tokenId = &#39;c6xxxxxx b1xxxxbf 1bxxxxxa bxxxxx41 cxxxxxc9 04xxxxxd xxxxxbd0 0xxxxxxx&#39;; //masked due to security reason, you should add your device token ID here  
     $apnsMessage = chr(1) . pack(&#39;N&#39;, time()) . pack(&#39;N&#39;, time() + 86400) . chr(0) . chr(32) . pack(&#39;H*&#39;, str_replace(&#39; &#39;, &#39;&#39;, $tokenId)) . chr(0) . chr(strlen($payload)) . $payload;  
   $streamContext = stream_context_create();  
   stream_context_set_option($streamContext, &#39;ssl&#39;, &#39;local_cert&#39;, $apnsCert);  
   stream_context_set_option($streamContext, &#39;ssl&#39;, &#39;passphrase&#39;, $passPhrase);  
   $apns = stream_socket_client($sslUrl, $error, $errorString, 6, STREAM_CLIENT_CONNECT, $streamContext);  
     if($apns){  
   $fwrite = fwrite($apns, $apnsMessage);  
     fclose($apns);  
   @socket_close($apns);  
     }else{  
     echo &#39;request failed&#39;;  
     }  
 ?&amp;gt;  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Couple of things I want to make it clear in the above .php code is&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;You might have to change the apns port, but in most cases this will work.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;Make sure you give the correct path for your apns.pem file that you created in the above Generate&amp;nbsp;certificate&amp;nbsp;section&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;You Should put your device token ID, so make sure you have your device token ID.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;


&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Final Touch&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After following the above steps, go to your Apple account and create a new provisioning profile, with the App ID you created, add your device to that provisioning profile.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;All the steps to create a provisioning profile are here&amp;nbsp;&lt;a href=&quot;https://developer.apple.com/ios/manage/provisioningprofiles/howto.action&quot; target=&quot;_blank&quot;&gt;Create Provision Profile&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After creating the Provisioning profile download that profile and install it by double clicking it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;Open up your Xcode organizer and drag and drop the provision profile you downloaded to the device in which you want to test the APNS, for that your device should be connected to your machine and your device should allow development.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Open up your Titanium studio and run the Application on the device, It will ask you for a valid provisioning profile, just locate it to the path where you downloaded the profile from you apple account.&lt;br /&gt;
And you are done.&lt;br /&gt;
&lt;br /&gt;
If you have any issues with the implementation, then happy to comment.&lt;br /&gt;
&lt;br /&gt;
Happy Push Notification.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/3976937427151817143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/06/implementing-apns-in-titanium-start-to.html#comment-form' title='35 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3976937427151817143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3976937427151817143'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/06/implementing-apns-in-titanium-start-to.html' title='Implementing APNS in Titanium-Start to End Tutorial'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>35</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-3996927145167416464</id><published>2012-04-05T19:52:00.000+05:30</published><updated>2013-01-11T13:06:01.972+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="commonJS"/><category scheme="http://www.blogger.com/atom/ns#" term="TableView"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium SDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><title type='text'>Learning commonJS: Building a custom TableView using commonJS approach</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The new player in the Titanium world is our commonJS module development.&lt;br /&gt;
As most of the Titanium developer will be aware of what commonJS module or commonJS approach for building a titanium application is.&lt;br /&gt;
&lt;br /&gt;
For the who dont know exactly what commonJS is, I must&amp;nbsp;recommend to go through the appcelerator wiki website. here is the link for that&amp;nbsp;&lt;a href=&quot;https://wiki.appcelerator.org/display/guides/CommonJS+Modules+in+Titanium&quot; target=&quot;_blank&quot;&gt;commonJS&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
In this tutorial I will be showing you that how to build a custom tableView with commonJS approach.&lt;br /&gt;
&lt;br /&gt;
Here is the snapshot of our custom tableView..&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifb9KtIBu39EqgQIs-P9SaHeIDKjQcrXuXupH7vYwr6AA7eeu9-ZcYxHo8gf9Me5ahIE6HTxh22Y5_M7-_MomwDiJXAUFMao36WSy5WefwoyU7XBKaPtTWk4uBVfipG_I9HFfKrjya9Zzg/s1600/customTable.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifb9KtIBu39EqgQIs-P9SaHeIDKjQcrXuXupH7vYwr6AA7eeu9-ZcYxHo8gf9Me5ahIE6HTxh22Y5_M7-_MomwDiJXAUFMao36WSy5WefwoyU7XBKaPtTWk4uBVfipG_I9HFfKrjya9Zzg/s400/customTable.png&quot; width=&quot;205&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So I will quickly brief you regarding what I am doing..&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
=&amp;gt; I have created a commonJS module that exports a function which creates this tableView.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
=&amp;gt; Now that function takes an argument that has your list of images and the custom text that you want to add the tableView row.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
=&amp;gt; The text in the bold is the name of the image. In the module I am fetching the image name from the url of that image.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
=&amp;gt; And in the end I am also adding a button in it.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Here is the code snippet of my customTableView.js which is a commonJS module.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHOZEFG6BcKcMRVEM9cB-7-mXcHBsbhaCS9RaTw7sRrrT8j3IiqHw7oRjoZaA4Tufmb3eo6o5ACwBuY7dw6JmbvUNyz-3IHAWvZcE-UdE9U1_-KFXZlodCPOqbCGmuTOrEe47WeHOgVxz/s320/codebg.gif); background-origin: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(204, 204, 204); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: dashed; border-top-width: 1px; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 550px;&quot;&gt;&lt;code id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;word-wrap: normal;&quot;&gt;exports.customTableView = function(param)  
 {  
   var win = Ti.UI.createWindow();  
   var mydata = [];  
   var imageUrl= [];  
   var rowText = [];  
   imageUrl=param.imageUrl;  
   //Fetching the image name from the imageUrl  
   for(i=0; i&amp;lt; imageUrl.length;i++)  
   {  
     var nameInput = imageUrl[i].replace(/^.*[\\\/]/, &#39;&#39;); // This gives the image name with its extension,  
     // here we are removing the extension and just fetching the name  
     var name = nameInput.substr(0, nameInput.lastIndexOf(&#39;.&#39;)) || nameInput;  
     rowText[i]= name;  
   }  
   // var customText = [];  
   // customText = param.customText;  
   //Building the custom row  
   for(i=0;i&amp;lt; imageUrl.length; i++)  
   {  
     var cancelBtn;  
     var row;  
     if(Ti.Platform.osname !=&#39;android&#39;)  
     {  
       cancelBtn = Ti.UI.createButton({  
       image:&#39;images/delete.png&#39;,  
       width:&#39;32dp&#39;,  
       height:&#39;32dp&#39;,  
       style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN,  
       left : &#39;250dp&#39;  
       });  
       row = Ti.UI.createTableViewRow({height:&#39;70dp&#39;, backgroundImage:&#39;images/brown.png&#39;, backgroundRepeat:&#39;true&#39;});  
     }  
     else  
     {  
       cancelBtn = Ti.UI.createButton({  
       image:&#39;images/delete.png&#39;,  
       width:&#39;32dp&#39;,  
       height:&#39;32dp&#39;,  
       left : &#39;250dp&#39;  
       });  
       row = Ti.UI.createTableViewRow({backgroundImage:&#39;images/brown.png&#39;});  
     }  
     var myimage = Ti.UI.createImageView({  
       backgroundImage:imageUrl[i],  
       top:&#39;5dp&#39;,  
       width:&#39;64dp&#39;,  
       left: &#39;4dp&#39;,  
       height:&#39;64dp&#39;,  
       borderColor: &#39;#fff&#39;,  
       borderWidth:&#39;2dp&#39;,  
       borderRadius:&#39;7dp&#39;  
     });  
     var rowName = Ti.UI.createLabel({  
       text: rowText[i],  
       top:&#39;2dp&#39;,  
       color:&#39;#fff&#39;,  
       //width:&#39;auto&#39;,  
       font:{fontSize:16,fontWeight:&#39;bold&#39;},  
       left:&#39;80dp&#39;  
     });  
     var rowCustomText = Ti.UI.createLabel({  
       text:param.customText[i],  
       top:&#39;30dp&#39;,  
       color:&#39;#fff&#39;,  
       font:{fontSize:12},  
       left:&#39;80dp&#39;  
     });  
     row.add(myimage);  
     row.add(rowName);  
     row.add(rowCustomText);  
     row.add(cancelBtn);  
     row.className = &#39;myData&#39;;  
     mydata[i]=row;  
   }  
   var myTableView = Ti.UI.createTableView({  
     data:mydata,  
     allowsSelection:&#39;true&#39;  
   });  
   win.add(myTableView);  
   return win;  
 }  &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
you can download the complete working project from my github.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
here is the link... &lt;a href=&quot;https://github.com/ajeetpratap/commonJStableView&quot; target=&quot;_blank&quot;&gt;commonJStableView&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Feel free to edit it and update it..&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/3996927145167416464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/04/learning-commonjs-building-custom.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3996927145167416464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3996927145167416464'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/04/learning-commonjs-building-custom.html' title='Learning commonJS: Building a custom TableView using commonJS approach'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifb9KtIBu39EqgQIs-P9SaHeIDKjQcrXuXupH7vYwr6AA7eeu9-ZcYxHo8gf9Me5ahIE6HTxh22Y5_M7-_MomwDiJXAUFMao36WSy5WefwoyU7XBKaPtTWk4uBVfipG_I9HFfKrjya9Zzg/s72-c/customTable.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-5310627778659092590</id><published>2012-03-20T11:26:00.000+05:30</published><updated>2013-01-11T13:06:35.717+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="Hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="Hacking Titanium SDK"/><category scheme="http://www.blogger.com/atom/ns#" term="SDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium SDK"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><title type='text'>Hacking Titanium SDK - Modifying Create project Wizard</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I was working on a project in Titanium this weekend, and I crossed the limit of my laziness.&lt;br /&gt;
I had certain files(JS) which I almost need in all my project, so every time I create a project I had to include them or add them to my project.&lt;br /&gt;
&lt;br /&gt;
I thought why don&#39;t this process be automated, means whenever I create any project &quot;My files&quot; should automatically get added to my project.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
So in this tutorial I will tell you &quot;&lt;b&gt;How to hack the Titanium SDK&quot; &lt;/b&gt;to achieve the same&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Caution: Modifying the SDK files in not a good option unless you are sure what you are doing&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
So open up your Titanium SDK directory.&lt;br /&gt;
In my MAC it is&lt;br /&gt;
Root Directory --&amp;gt; Library --&amp;gt; Application Support --&amp;gt;Titanium --&amp;gt; mobilesdk --&amp;gt;osx&lt;br /&gt;
&lt;br /&gt;
And there you find all your Titanium SDK files.&lt;br /&gt;
&lt;br /&gt;
I&amp;nbsp;choose SDK 1.7.5, so back up your SDK so that in case anything goes wrong.&lt;br /&gt;
&lt;br /&gt;
Open up SDK 1.7.5, you will see below files and folders&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSPz5PRy4O6LoptVKfvqmZQGgnBhdjc5J3R0U3X2nXQ-7mG2K5cFTMaaj3RzbaCkgvfjVWto8u4BW-j6tC2rD_0s-Y5xMIP29C2Nn6HUhZpHj-qNHcFQ8mQsfMe8R2AkZsPkRdtq3a17GM/s1600/sdkfiles.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSPz5PRy4O6LoptVKfvqmZQGgnBhdjc5J3R0U3X2nXQ-7mG2K5cFTMaaj3RzbaCkgvfjVWto8u4BW-j6tC2rD_0s-Y5xMIP29C2Nn6HUhZpHj-qNHcFQ8mQsfMe8R2AkZsPkRdtq3a17GM/s640/sdkfiles.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;From these bunch of files we are interested in folder named &quot;all&quot; and file named &quot;project.py&quot;.&lt;br /&gt;
project.py is a python based file.&lt;br /&gt;
&lt;br /&gt;
Now create a folder in &quot;all&quot; folder say &quot;MyFiles&quot; and paste &amp;nbsp;all your necessary JS files or images, anything in it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Lets do the Hack&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Open up the project.py file.&lt;br /&gt;
Make sure you have a python editor, as python is totally based on indentation, so while changing the python file you might get &quot;indentation error&quot;, so dont be panic-&quot;I was for first time&quot;.&lt;br /&gt;
&lt;br /&gt;
I edited the project.py file in my Titanium studio. But you can easily see the code in your Xcode also&lt;br /&gt;
Now you have file opened-&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
browse through the code...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdVrpPAFK45YXWcvHhyHN9leifc9LTYVfp2p7Tn8nji94hP-z5OfGro9d3OIDzGGZUqssDIVvBnjFoxK7NJ0vwIRqKO-warPkgqTMv7eqQH1fTRewZ4rirDXBxmvoNJNW5k7wkd2IbXQ1A/s1600/findcode.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdVrpPAFK45YXWcvHhyHN9leifc9LTYVfp2p7Tn8nji94hP-z5OfGro9d3OIDzGGZUqssDIVvBnjFoxK7NJ0vwIRqKO-warPkgqTMv7eqQH1fTRewZ4rirDXBxmvoNJNW5k7wkd2IbXQ1A/s640/findcode.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
The&amp;nbsp;highlighted code is adding &quot;Resource&quot; directory to the project.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So below that highlighted code we will add our code.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Here what your project.py will look after adding the code&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbSfA_keZOFzotviSfnCTpi4WWnqyU6WLtzTG6MbI-huOz-qki0SUmnq_zmoR-dQa7_LEIFxdRO8vE7ixzlE3KhMgsyeX4WPBj1dn959XdgDgLJgzUIjsuBGm0SNKBp31aoEqambXDXnQm/s1600/finaledit.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbSfA_keZOFzotviSfnCTpi4WWnqyU6WLtzTG6MbI-huOz-qki0SUmnq_zmoR-dQa7_LEIFxdRO8vE7ixzlE3KhMgsyeX4WPBj1dn959XdgDgLJgzUIjsuBGm0SNKBp31aoEqambXDXnQm/s640/finaledit.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Here we are just getting the folder &quot;MyFiles&quot; that we created in &quot;all&quot; folder and copying it to the &quot;Resource&quot; folder of our project.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Now save your &lt;b&gt;project.py&lt;/b&gt; file and lets create a new Titanium project using our edited SDK i.e 1.7.5&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Here I have created a project named &quot;SDKhack&quot; choosing the Titanium 1.7.5 SDK, which we edited.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
And now after creating the project I have my &quot;MyFiles&quot; folder with all the files automatically added to my Project.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZRwT3Z2DPfjg0Kl9oTdh6mJR_BNILE2gjSFlqrBXX-etjFVP-HGcimskOKYLYRPeIVZ_vcH18NzF2rTKqKHBfxkhKpnex4xPA0Ibm83Z95MFfvvnETGHJM6tPlntDG_KAT3izntWFEfQN/s1600/myfiles.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZRwT3Z2DPfjg0Kl9oTdh6mJR_BNILE2gjSFlqrBXX-etjFVP-HGcimskOKYLYRPeIVZ_vcH18NzF2rTKqKHBfxkhKpnex4xPA0Ibm83Z95MFfvvnETGHJM6tPlntDG_KAT3izntWFEfQN/s400/myfiles.png&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Thats All for Now, Thank you..&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/5310627778659092590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/03/hacking-titanium-sdk-create-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/5310627778659092590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/5310627778659092590'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/03/hacking-titanium-sdk-create-project.html' title='Hacking Titanium SDK - Modifying Create project Wizard'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSPz5PRy4O6LoptVKfvqmZQGgnBhdjc5J3R0U3X2nXQ-7mG2K5cFTMaaj3RzbaCkgvfjVWto8u4BW-j6tC2rD_0s-Y5xMIP29C2Nn6HUhZpHj-qNHcFQ8mQsfMe8R2AkZsPkRdtq3a17GM/s72-c/sdkfiles.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-4403453121422277588</id><published>2012-02-13T15:56:00.000+05:30</published><updated>2013-01-11T13:07:34.015+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="JSON"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="WebService"/><title type='text'>Calling Drupal WebService through Titanium using Json</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In this tutorial I will tell you how to call a drupal webService using Json with and without any parameter.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So lets start with &lt;b&gt;Calling a webService without any parameter.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you are not aware then let me tell you that for calling a drupal webService, w have an endpoint or we can say it as a url to which you will point and call a specific method (which will be your webService name).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The most common webService that is called in drupal is &lt;b&gt;system.connect&lt;/b&gt;, lets call that.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To call any webService we neet to create an httpClient.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;
&lt;/code&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;var xhr = Titanium.Network.createHTTPClient({
    
    onload : function(e) {         &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//1&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;
       Titanium.API.info(this.responseText);
         },
     
     onerror : function(e) {         &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//2&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
         Ti.API.debug(e.error);
         alert(&#39;error&#39;);
     },
     timeout : 5000
});
xhr.open(&quot;POST&quot;,&quot;http://myTestUrl.net/services/json&quot;); &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//3&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
xhr.setRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded; charset=utf-8&quot;); &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//3&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
xhr.send(&quot;method=system.connect&quot;); &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//4&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Lets understand the commented lines:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. &lt;b&gt;onload&lt;/b&gt; : This Function to be called upon a successful response.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;   In that function this.responseText will Log your response that you got from the server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. &lt;b&gt;onerror&lt;/b&gt; : This Function to be called upon a error response.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3. &lt;b&gt;xhr.open()&lt;/b&gt; : This Opens the request and readies the connection. here I am sending a POST request and my endpoint is &lt;span style=&quot;color: blue;&quot;&gt;http://myTestUrl.net/services/json&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;4. &lt;b&gt;xhr.setRequestHeader() &lt;/b&gt;: Sets the value for the specified request header. This function must be called after open but before send.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;5. &lt;b&gt;xhr.send ()&lt;/b&gt; : This method sends the request, as you can see the method name which is system.connect which I am passing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So the above code will call the webService name &quot;system.connect&quot; and this webService does not accepts any parameter.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can get your server response in onload() function. You can parse the response using &quot;&lt;b&gt;JSON.parse&lt;/b&gt;&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Calling webService with parameter &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now what if you want to send some parameter to the webService that you want to call. &lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We will follow the same step as above but the only difference will be that we will pass the parameter with our &lt;b&gt;send() &lt;/b&gt;request.&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;here how we do it:&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;var xhr = Titanium.Network.createHTTPClient({
   
   onload : function(e) {
       Titanium.API.info(this.responseText);
       
       //do whatever you want to do with your response
   }, 
   
   onerror : function(e) {
       alert(&#39;error&#39;);
   },
   timeout : 5000
    
});

xhr.open(&quot;POST&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://myTestUrl.net/services/json&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;);&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;xhr.setRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded; charset=utf-8&quot;);
var param = {          &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;//1&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;
  &quot;method&quot; : &quot;getData.list&quot;,
  &quot;dataID&quot; : &quot;243&quot;
  
};
xhr.send(param);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here you can see that the only difference you can see is in the &lt;b&gt;send()&lt;/b&gt; function.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;As now we dont have to send only our API name i.e method name, but we are passing an extra parameter here i.e &lt;b&gt;&quot;dataID&quot;&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;
NOTE: The names of your parameter should be same as you define in your webService API.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Hence In the above code we are calling a webService named &lt;b&gt;&quot;getData.list&quot;&lt;/b&gt; which accepts one parameter &lt;b&gt;&quot;dataID&quot;&lt;/b&gt;.&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;we can send as many parameter by this way as required by our API.&lt;/span&gt;

&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/4403453121422277588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/02/calling-drupal-webservice-through.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/4403453121422277588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/4403453121422277588'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/02/calling-drupal-webservice-through.html' title='Calling Drupal WebService through Titanium using Json'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-8717691218194822222</id><published>2012-01-16T15:08:00.000+05:30</published><updated>2013-01-11T13:08:09.329+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="Bitly API"/><category scheme="http://www.blogger.com/atom/ns#" term="Extending Titainium"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS module"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><title type='text'>Extending titanium project with iOS module development-Implementing Bitly API</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I spend my weekends reading about titanium and exploring its power. And being an iOS developer, I really loved the way we can create iOS modules for my existing titanium project and extend it to a great extend.&lt;br /&gt;
The modules created can be easily created and deployed.&lt;br /&gt;
Today I will tell you how we can easily integrate an iOS module and use its power in our titanium project.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Overview&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
We will be creating a simple application with the titanium studio, which will accept a long url and give us a short url.&lt;br /&gt;
In short, we will be implementing Bitly API.&lt;br /&gt;
Here the UI will be designed in our Titanium studio &amp;nbsp;and out Bitly API implementation will be done in our iOS module that we will develop.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Then we gonna include that module in our project and use it to convert our long URL to short one.&lt;br /&gt;
&lt;br /&gt;
So, Lets get Started.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Creating Our Titanium Project&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
As you will be familier with the titanium development so I will skip that project creation wizard. :)&lt;br /&gt;
I will name my project as &lt;b&gt;ShortUrl&lt;/b&gt;.&lt;br /&gt;
Now edit the default code in the app.js(you will find it in Resource folder under your Application folder) file with this code.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;var &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;window &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;= &lt;/span&gt;Ti.UI.createWindow({&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;backgroundColor:&lt;span class=&quot;s4&quot;&gt;&#39;white&#39;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;});&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;var &lt;/span&gt;txtLongUrl &lt;span class=&quot;s3&quot;&gt;= &lt;/span&gt;Ti.UI.createTextField({&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;top: &lt;span class=&quot;s5&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;left: &lt;span class=&quot;s5&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;width: &lt;span class=&quot;s5&quot;&gt;300&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;height: &lt;span class=&quot;s5&quot;&gt;30&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;borderStyle: &lt;span class=&quot;s5&quot;&gt;1&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s6&quot;&gt;&amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;hintText: &lt;/span&gt;&#39;Enter your long url...&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;});&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;window&lt;/span&gt;.add(txtLongUrl);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;var &lt;/span&gt;btnShorten &lt;span class=&quot;s3&quot;&gt;= &lt;/span&gt;Ti.UI.createButton({&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s6&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;title: &lt;/span&gt;&#39;Shorten it with Bit.ly!&#39;&lt;span class=&quot;s6&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;width: &lt;span class=&quot;s5&quot;&gt;200&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;right: &lt;span class=&quot;s5&quot;&gt;10&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;height: &lt;span class=&quot;s5&quot;&gt;30&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;top: &lt;span class=&quot;s5&quot;&gt;50&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;});&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;btnShorten.addEventListener(&lt;span class=&quot;s4&quot;&gt;&#39;click&#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;function&lt;/span&gt;(&lt;span class=&quot;s7&quot;&gt;e&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;// here we will add the code that will call our module later&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;});&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;window&lt;/span&gt;.add(btnShorten);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;var &lt;/span&gt;txtShortUrl &lt;span class=&quot;s3&quot;&gt;= &lt;/span&gt;Ti.UI.createTextField({&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;top: &lt;span class=&quot;s5&quot;&gt;100&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;left: &lt;span class=&quot;s5&quot;&gt;10&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;width: &lt;span class=&quot;s5&quot;&gt;300&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;height: &lt;span class=&quot;s5&quot;&gt;30&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;borderStyle: &lt;span class=&quot;s5&quot;&gt;1&lt;/span&gt;,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s6&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;hintText: &lt;/span&gt;&#39;Your short url appears here...&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;});&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;window&lt;/span&gt;.add(txtShortUrl);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;window&lt;/span&gt;.open();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
When you run your project you will see the similar screen below.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiGyoqz7wXQvNtPztcliOVn-bs6NXpsRfrtOZ5LEp07DSzmI5Ox-kWWhPnQx3ylfk_VIL8nGeZVmJW7yyLGgOp_e6SU5XQ662H6eZhQ45YAL627B3EJ7shE38lVgdRzFqOY7sYppXxJZTy/s1600/bitly.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiGyoqz7wXQvNtPztcliOVn-bs6NXpsRfrtOZ5LEp07DSzmI5Ox-kWWhPnQx3ylfk_VIL8nGeZVmJW7yyLGgOp_e6SU5XQ662H6eZhQ45YAL627B3EJ7shE38lVgdRzFqOY7sYppXxJZTy/s320/bitly.png&quot; width=&quot;163&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we have our UI, lets build our iOS Module.&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Setting Up your Module Environment&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;
&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt; The below steps are taken from the Appcelerator documentation and guides. In case you face any problem refer below given link:&lt;br /&gt;
&lt;a href=&quot;https://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide&quot;&gt;https://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;To set up your Module environment on OSX, you&#39;ll need to place a helper script on your path or set up an environment alias to the file. In this document, we recommend you create an alias.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Note:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffdd; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;You&#39;ll need to determine where your Titanium 1.4.0 SDK (or more recent version) is installed. It may be installed in /Library/Application\ Support/Titanium, or it may be in ~/Library/Application\ Support/Titanium. The steps below assume that it is below /Library. If it is below ~/Library instead, you&#39;ll need to make the appropriate change to the line in step 3.&lt;/span&gt;&lt;br /&gt;
&lt;ol id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;&quot;&gt;
&lt;li id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Open the Console application. The Console application is located under /Applications/Utilities/Console.&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Edit the file named .bash_profile in your $HOME directory.&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;In this file, add the following line at the end of the file:&lt;div class=&quot;code panel&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(187, 187, 187); border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-left-radius: 5px; border-top-right-radius: 5px; border-top-style: dashed; border-top-width: 1px; color: black; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot; id=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #333333; font-size: 0.95em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 0px;&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  jscript&quot; id=&quot;highlighter_55312&quot; style=&quot;background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; position: relative !important; width: 925px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; clear: left; color: #333333; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;&quot; title=&quot;Hint: double-click to select code&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;alias titanium=&lt;/code&gt;&lt;code class=&quot;jscript string&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&#39;/Library/Application\ Support/Titanium/mobilesdk/osx/1.7.5/titanium.py&#39;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; font-size: 10pt; line-height: 13pt; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
This will create an alias to the titanium.py helper script. You should substitute the version above (1.4.0) with the version of Titanium mobile SDK you&#39;re using.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Save the file.&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Type the following command in the console:&lt;div class=&quot;code panel&quot; id=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(187, 187, 187); border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-left-radius: 5px; border-top-right-radius: 5px; border-top-style: dashed; border-top-width: 1px; color: black; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #333333; font-size: 0.95em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 0px;&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  jscript&quot; id=&quot;highlighter_508183&quot; style=&quot;background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; position: relative !important; width: 925px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; clear: left; color: #333333; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;&quot; title=&quot;Hint: double-click to select code&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;source ~/.bash_profile&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li id=&quot;&quot; style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Type the following command in the console:&lt;div class=&quot;code panel&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(187, 187, 187); border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-left-radius: 5px; border-top-right-radius: 5px; border-top-style: dashed; border-top-width: 1px; color: black; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #333333; font-size: 0.95em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 0px;&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  jscript&quot; id=&quot;highlighter_465051&quot; style=&quot;background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; position: relative !important; width: 925px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; clear: left; color: #333333; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;&quot; title=&quot;Hint: double-click to select code&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;titanium&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
You should see the following output (or substantially similar):&lt;div class=&quot;code panel&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-color: rgb(187, 187, 187); border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-left-radius: 5px; border-top-right-radius: 5px; border-top-style: dashed; border-top-width: 1px; color: black; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;div class=&quot;codeContent panelContent&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #333333; font-size: 0.95em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; padding-top: 0px;&quot;&gt;
&lt;div&gt;
&lt;div class=&quot;syntaxhighlighter nogutter  jscript&quot; id=&quot;highlighter_769807&quot; style=&quot;background-color: white !important; font-size: 1em !important; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; overflow-x: auto !important; overflow-y: auto !important; position: relative !important; width: 925px;&quot;&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; clear: left; color: #333333; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;tbody style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;code&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 925px;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;&quot; title=&quot;Hint: double-click to select code&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Appcelerator Titanium&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;Copyright (c) 2010 by Appcelerator, Inc.&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;commands:create&amp;nbsp; - create a project&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;run&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - run an existing project&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;code class=&quot;jscript plain&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-image: initial !important; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.2em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; min-height: inherit !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - get help&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;font-size: 10pt; line-height: 13pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Keep open the console as you&#39;ll need it in subsequent steps.&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;b&gt;&lt;u&gt;Building Our Bitly Module&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Create the module with the following script:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;In your terminal type:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;titanium create --platform=iphone --type=module --dir=~/Projects --name=BitlyModule --id=com.ajeet.BitlyModule&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now open the &lt;span class=&quot;s1&quot;&gt;/Projects/BitlyModule &lt;/span&gt;directory in Finder, and what you will see is a list of mostly standard looking XCode project files. Double click the &lt;span class=&quot;s1&quot;&gt;BitlyModule.xcodeproj &lt;/span&gt;file to open it up in XCode for editing.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Before you can use the module, you&#39;ll need to sign up for a Bitly API Key, which you can do for free at: &lt;span class=&quot;s1&quot;&gt;&lt;a href=&quot;https://bitly.com/a/sign_up?rd=/a/your_api_key&quot;&gt;https://bitly.com/a/sign_up?rd=/a/your_api_key&lt;/a&gt;&lt;/span&gt;.&lt;/blockquote&gt;
&lt;div class=&quot;p1&quot;&gt;
Additionally, we&#39;re going to need the open source SBJSON framework for Objective-C, which is capable of natively reading and writing JSON formatted data streams. You can download the SBJSON framework from &lt;span class=&quot;s1&quot;&gt;&lt;a href=&quot;https://github.com/stig/json-framework/&quot;&gt;https://github.com/stig/json-framework/&lt;/a&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now we have our SBJSON framework and our Bitly API key, so now lets start with our Module.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
First, unzip the SBJSON framework, and drag all of the files from the &lt;span class=&quot;s1&quot;&gt;Classes &lt;/span&gt;folder in Finder to the &lt;span class=&quot;s1&quot;&gt;Classes &lt;/span&gt;folder in your module&#39;s XCode project.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Open up &lt;span class=&quot;s1&quot;&gt;ComAjeetBitlyModuleModule.h &lt;/span&gt;and ensure it looks like the following (ignoring the header comments at the top of the file):&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;#import &lt;/span&gt;&quot;TiModule.h&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;#import &lt;/span&gt;&amp;lt;Foundation/Foundation.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;@interface&lt;/span&gt; ComAjeetBitlyModuleModule : &lt;span class=&quot;s3&quot;&gt;TiModule&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class=&quot;p1&quot;&gt;
Now open the &lt;span class=&quot;s1&quot;&gt;ComAjeetBitlyModuleModule.m &lt;/span&gt;file and ensure it looks like the following source code (ignoring the header comments at the top of the file).&lt;br /&gt;
Remember to replace the &lt;span class=&quot;s1&quot;&gt;login &lt;/span&gt;and &lt;span class=&quot;s1&quot;&gt;key &lt;/span&gt;values in the &lt;span class=&quot;s1&quot;&gt;QueryString &lt;/span&gt;section of the URL with those you were assigned by the &lt;span class=&quot;s1&quot;&gt;Bit.ly &lt;/span&gt;API:&lt;br /&gt;
&lt;br /&gt;
In your .m file you will have many function prewritten for you, so for now dont touch them.&lt;br /&gt;
&lt;br /&gt;
include the Sbjson files in your .m files.&lt;br /&gt;
so that it looks like below,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;ComAjeetBitlyModuleModule.h&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;TiBase.h&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;TiHost.h&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;TiUtils.h&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;SBJson.h&quot;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#import &quot;SBJsonParser.h&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;@implementation ComAjeetBitlyModuleModule&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;// all your other code&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;#pragma Public APIs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;//here we will create a public method that will interact with our titanium project.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;//add this function here&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)getShortUrl:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)args&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *baseURLString = &lt;/span&gt;@&quot;http://api.bit.ly/shorten?version=2.0.1&amp;amp;longUrl=&quot;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt; *longUrl = [&lt;span class=&quot;s4&quot;&gt;TiUtils&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;stringValue&lt;/span&gt;:args];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; longUrl = [longUrl &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;@&quot;(&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;withString&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; longUrl = [longUrl &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;stringByReplacingOccurrencesOfString&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;)&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;withString&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; longUrl = [longUrl &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;stringByReplacingOccurrencesOfString&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;\&quot;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;withString&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp;longUrl = [longUrl &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;stringByTrimmingCharactersInSet&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;NSCharacterSet&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp;w&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;hitespaceAndNewlineCharacterSet&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;]]; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;baseURLString = [baseURLString &lt;/span&gt;&lt;span class=&quot;s7&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;stringByAppendingString&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;:longUrl];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;baseURLString = [baseURLString &lt;/span&gt;&lt;span class=&quot;s7&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;stringByAppendingString&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;&amp;amp;login=username&amp;amp;apiKey=yourKey&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;];&amp;nbsp; // your username and API key&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt;* baseURL = [[&lt;span class=&quot;s3&quot;&gt;NSURL&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;alloc&lt;/span&gt;]&lt;span class=&quot;s7&quot;&gt;initWithString&lt;/span&gt;:baseURLString];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;NSMutableURLRequest&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt; *req = [[&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;NSMutableURLRequest&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s7&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s7&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;initWithURL&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;:baseURL];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSHTTPURLResponse&lt;/span&gt;* urlResponse = &lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSError&lt;/span&gt; *error = [[[&lt;span class=&quot;s3&quot;&gt;NSError&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s7&quot;&gt;init&lt;/span&gt;] &lt;span class=&quot;s7&quot;&gt;autorelease&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSData&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *data = [&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSURLConnection&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;sendSynchronousRequest&lt;span class=&quot;s2&quot;&gt;:req &lt;/span&gt;returningResponse&lt;span class=&quot;s2&quot;&gt;:&amp;amp;urlResponse &lt;/span&gt;error&lt;span class=&quot;s2&quot;&gt;:&amp;amp;error];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt; ([urlResponse &lt;span class=&quot;s7&quot;&gt;statusCode&lt;/span&gt;] &amp;gt;= &lt;span class=&quot;s8&quot;&gt;200&lt;/span&gt; &amp;amp;&amp;amp; [urlResponse &lt;span class=&quot;s7&quot;&gt;statusCode&lt;/span&gt;] &amp;lt; &lt;span class=&quot;s8&quot;&gt;300&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s9&quot;&gt;NSLog&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;@&quot;Got a response from bit.ly&quot;&lt;span class=&quot;s2&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;SBJsonParser&lt;/span&gt;* jsonParser = [&lt;span class=&quot;s3&quot;&gt;SBJsonParser&lt;/span&gt; &lt;span class=&quot;s7&quot;&gt;new&lt;/span&gt;];&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;* jsonString = [[&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s2&quot;&gt;]&lt;/span&gt;initWithData&lt;span class=&quot;s2&quot;&gt;:data &lt;/span&gt;encoding&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;NSUTF8StringEncoding&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSDictionary&lt;/span&gt;* dict = (&lt;span class=&quot;s3&quot;&gt;NSDictionary&lt;/span&gt;*)[jsonParser &lt;span class=&quot;s7&quot;&gt;objectWithString&lt;/span&gt;:jsonString];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [jsonString &lt;span class=&quot;s7&quot;&gt;release&lt;/span&gt;];&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [jsonParser &lt;span class=&quot;s7&quot;&gt;release&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt; *statusCode = [dict &lt;span class=&quot;s7&quot;&gt;objectForKey&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;statusCode&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;([statusCode &lt;/span&gt;&lt;span class=&quot;s7&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;isEqualToString&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;background-color: white; color: #134f5c;&quot;&gt;@&quot;OK&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;])&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;// retrieve shortURL from results NSLog([dict description]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt; *shortURL = [[[dict &lt;span class=&quot;s7&quot;&gt;objectForKey&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;results&quot;&lt;/span&gt;] &lt;span class=&quot;s7&quot;&gt;objectForKey&lt;/span&gt;:longUrl] &lt;span class=&quot;s7&quot;&gt;objectForKey&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;shortUrl&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt; shortURL;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;@&quot;Unable to shorten this URL, please check its format.&quot;&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt; baseURLString;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #134f5c;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now at this point we have created a function &lt;b&gt;getShortUrl, &lt;/b&gt;save you .m file.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now we will package our module, so on the terminal&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
type the following: &amp;nbsp;&lt;b&gt;./build.py&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
the terminal will throw bunch of lines and in the end you will see &lt;b&gt;build&amp;nbsp;succeed&lt;/b&gt;&amp;nbsp;.&lt;/div&gt;
&lt;br /&gt;
If you have any error first resolve it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; line-height: 17px; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;To install your Module so that it can be used in a real application, you will need to install it. In the console, run the following:&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; line-height: 17px; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;you will find this .zip file in your module folder.&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; color: #333333; line-height: 17px; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;background-color: #f1c232; color: black; line-height: 14px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;gt; cp com.ajeet-iphone-0.1.zip /Library/Application\ Support/Titanium/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; color: #333333; line-height: 17px; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;This will copy your Module distribution file into your Titanium directory. The Titanium compiler is smart enough to automatically expand your module into the correct directory when referenced in your application.&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Your module will be expanded into the following directory:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;background-color: #f1c232; line-height: 17px;&quot;&gt;/Library/Application Support/Titanium/modules/iphone/com.ajeet/0.1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Now we are done with our Module development, lets attach it to our titanium project.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Open up your Titanium project that we created earlier, i.e. shortUrl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;1. open the tiApp.xml file and in the end add this line in place of this &lt;b&gt;&amp;lt;modules/&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&amp;lt;modules&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&amp;lt;module version=&quot;0.1&quot;&amp;gt;com.ajeet.BitlyModule&amp;lt;/module&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&amp;lt;/modules&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Here we added our module, It means our app will be needing it.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;2. In your app.js, on the top add this line&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;var mybitly = require(&#39;com.ajeet.BitlyModule&#39;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Ti.API.info(&quot;module is =&amp;gt; &quot; + mybitly);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;3. Now in our btnShorten function we will call our getShortUrl function defined in our .m file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; line-height: 17px;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;btnShorten.addEventListener(&#39;click&#39;, function(e){&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Titanium.API.info(&quot;longUrl is----&amp;gt; &quot;+ txtLongUrl.value);&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;var result = mybitly.getShortUrl(txtLongUrl.value);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Titanium.API.info(&quot;result is----&amp;gt; &quot;+ result);&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;txtShortUrl.value = result;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #134f5c; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;});&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;By doing this we completed our module integration.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif; line-height: 17px;&quot;&gt;just run the application, and enter any url in the long url textbox and by clicking on the button&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;we get our short bitly url..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Hope you enjoyed the tutorial..:)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;Here is the output:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV1v3MYTnGEv85JOrfXICEzpC2gqCMNj8vsR-MELPKEVVgbOxk8lu8dfqK-wjSQPo3QGfHtQVHlLeBdWi6gmYSFrTEhg6QUSCg1-setlzECKHOiFIxhT2kLVGlpAAh7QwjpciPValrwQqN/s1600/bitlyresult.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV1v3MYTnGEv85JOrfXICEzpC2gqCMNj8vsR-MELPKEVVgbOxk8lu8dfqK-wjSQPo3QGfHtQVHlLeBdWi6gmYSFrTEhg6QUSCg1-setlzECKHOiFIxhT2kLVGlpAAh7QwjpciPValrwQqN/s400/bitlyresult.png&quot; width=&quot;205&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id=&quot;aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 17px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/8717691218194822222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2012/01/extending-titanium-project-with-ios.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/8717691218194822222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/8717691218194822222'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2012/01/extending-titanium-project-with-ios.html' title='Extending titanium project with iOS module development-Implementing Bitly API'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiGyoqz7wXQvNtPztcliOVn-bs6NXpsRfrtOZ5LEp07DSzmI5Ox-kWWhPnQx3ylfk_VIL8nGeZVmJW7yyLGgOp_e6SU5XQ662H6eZhQ45YAL627B3EJ7shE38lVgdRzFqOY7sYppXxJZTy/s72-c/bitly.png" height="72" width="72"/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-3771866322618537194</id><published>2011-12-19T13:18:00.000+05:30</published><updated>2011-12-19T15:03:54.899+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter"/><title type='text'>Beginning Twitter integration iOS 5: Part 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
iOS 5 came with a bang and with tons of surprises. 1500 &amp;nbsp;new API, sounds very interesting.&lt;br /&gt;
&lt;br /&gt;
One of the good thing is that &amp;nbsp;iOS 5 ships with the Twitter framework. So it means no hectic code, oauth&amp;nbsp;implementation&amp;nbsp;by the developer. All of it is done and taken care by this framework.&lt;br /&gt;
And the best part is that it supports multiple accounts.&lt;br /&gt;
&lt;br /&gt;
So Today we gonna sneak peak in this framework and will implement a simple twitter Application that will be sending &amp;nbsp;your tweet.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Get Started&lt;/b&gt;&lt;br /&gt;
As we are using new feature of iOS 5, so i am assuming that you have Xcode 4+.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Fire up your Xcode and name the project as LetsTweet.&lt;br /&gt;
Make sure that ARC(Automatic reference counting) is enabled.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;Select the Single View Application.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Adding Twitter Framework&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 21px;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;This is accomplished by clicking on your project in the Navigator sidebar, selecting your project’s target, and going to Build Phases. This should pull up a table with a few items.&amp;nbsp;Click the arrow next to Link Binary With Libraries to expand the options and click the + button to add a new library. Find the library named Twitter.framework in the popup menu and select add button.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;In the end it will be like:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh07zKsXNOi_fryj2AQUYSuHb6ec5QMPrxM6on7N-PGSPCCbJGuiwueHTIv0OuPRclHsnhaVj2crq0IVMWNCfC3Q93dmSsd8LiHtGHwVvXMfy6CeTXKVnCgzZwhxikmVHrhVqWi-62kgwIq/s1600/twitterframework.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh07zKsXNOi_fryj2AQUYSuHb6ec5QMPrxM6on7N-PGSPCCbJGuiwueHTIv0OuPRclHsnhaVj2crq0IVMWNCfC3Q93dmSsd8LiHtGHwVvXMfy6CeTXKVnCgzZwhxikmVHrhVqWi-62kgwIq/s400/twitterframework.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
As we are only going to implement the very basic functionality i.e to tweet, So our view controller will be simple too.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; Now go to your ViewController.xib, drag a UIButton to the View, and edit the text on it to be Tweet.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5aNZX560xuKV2RjwC1OMp-b2jzG2zuBSJBpQ5dr1Z7fPUPkCqg7Gs6msXMKhhVZ5tzq3YGBTFP2yaKK8HT4ryiIAoqDdXNroVj-nYX-9A1uf0AlURrZqgWfdOGJ-mIS7XODejTSoGrLpV/s1600/view.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5aNZX560xuKV2RjwC1OMp-b2jzG2zuBSJBpQ5dr1Z7fPUPkCqg7Gs6msXMKhhVZ5tzq3YGBTFP2yaKK8HT4ryiIAoqDdXNroVj-nYX-9A1uf0AlURrZqgWfdOGJ-mIS7XODejTSoGrLpV/s400/view.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; Click on the file ViewController.h, here we are going to declare a function that will handle the tweet button click.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; In your ViewController.h&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;#import &lt;/span&gt;&amp;lt;UIKit/UIKit.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;@interface&lt;/span&gt; ViewController : &lt;span class=&quot;s3&quot;&gt;UIViewController&lt;/span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;-(&lt;span class=&quot;s2&quot;&gt;IBAction&lt;/span&gt;)letsTweet: (&lt;span class=&quot;s2&quot;&gt;id&lt;/span&gt;) sender ;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;@end&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; Now connect the function &quot;letsTweet&quot; to Sent events (Touch up) of tweet button.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; Lets program the ViewController.m file.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
For using the Twitter framework you have to import it to your Class.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
so include this&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;#import &lt;/span&gt;&quot;Twitter/Twitter.h&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So in your .m file implement the &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;-(IBAction)letsTweet:(id)sender&lt;/span&gt; function as below.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)letsTweet:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//Create the tweet sheet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;TWTweetComposeViewController&lt;span class=&quot;s2&quot;&gt; *tweetSheet = [[&lt;/span&gt;TWTweetComposeViewController&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: lime;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//Customize the tweet sheet here&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;//Add a tweet message,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; [tweetSheet &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;setInitialText&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;@&quot;This is iOS Muncher sending first tweet. :)&quot;&lt;span class=&quot;s2&quot;&gt;]; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//Set a blocking handler for the tweet sheet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; tweetSheet.&lt;/span&gt;completionHandler&lt;span class=&quot;s2&quot;&gt; = ^(&lt;/span&gt;TWTweetComposeViewControllerResult&lt;span class=&quot;s2&quot;&gt; result)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;dismissModalViewControllerAnimated&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;//Show the tweet sheet!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;presentModalViewController&lt;span class=&quot;s2&quot;&gt;:tweetSheet &lt;/span&gt;animated&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Lets understand the code:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
1. &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;TWTweetComposeViewController&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;*tweetSheet = [[&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;TWTweetComposeViewController&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: blue;&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: blue;&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This allocates a new tweetSheet for us, this is the in-build ViewController that will be seen when you tap on tweet button.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
2. &amp;nbsp;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;[tweetSheet&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: blue;&quot;&gt;setInitialText&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;@&quot;This is iOS Muncher sending first tweet. :)&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;We can set initial text for the tweet, you can edit it later also when you are on the tweetSheet.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;3. &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;tweetSheet.&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;completionHandler&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;= ^(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;TWTweetComposeViewControllerResult&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;result)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;dismissModalViewControllerAnimated&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; line-height: 21px; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Here we have to set a blocking handler for the result. This is to ensure that we don’t mess up the rest of the app while tweeting until we dismiss the modal view (that is our tweet sheet)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4.&amp;nbsp;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: blue;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;presentModalViewController&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;:tweetSheet&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;animated&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: blue;&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This shows up your tweet sheet.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Running the Application:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Hit Build and Run button, you will the see the app running in your simulator.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Tap on tweet Button. If you see this screen as below, dont panic.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibBU5o3tEzUZxvDuQ23ANbk5ewM4A9zI9Pcjrr-xz3gNPJmJALG4q5xHI36osDzmlPkI9HCWKSUtk_oj-FOouoieBYitAqzP5jrtRqYwjz_KD5F2xy57BQRZMuHdLgAnOxYWnAeLXJ_5yj/s1600/tweetNoaccount.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibBU5o3tEzUZxvDuQ23ANbk5ewM4A9zI9Pcjrr-xz3gNPJmJALG4q5xHI36osDzmlPkI9HCWKSUtk_oj-FOouoieBYitAqzP5jrtRqYwjz_KD5F2xy57BQRZMuHdLgAnOxYWnAeLXJ_5yj/s400/tweetNoaccount.png&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
All iOS 5 devices have a feature in their setting page, where user can set their twitter account.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You have to set the account only one time, and it will not ask you again and again to authorize while posting tweets. cool ha..!!&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt; Just click on settings and add your twitter account.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKVfU2Gow0fsip6xldFPgQVUfLEQ4DwecxE811rcS-DdTWhcczkp6CtCzXylg8uaePXDkb_5e2WQ4GGyaRPIHY-qN6Rju2nmJqUYM-4etg1f-KRxBofXZr47hL98ZhG9HEFY9iEHUZPThT/s1600/tweetaddacc.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKVfU2Gow0fsip6xldFPgQVUfLEQ4DwecxE811rcS-DdTWhcczkp6CtCzXylg8uaePXDkb_5e2WQ4GGyaRPIHY-qN6Rju2nmJqUYM-4etg1f-KRxBofXZr47hL98ZhG9HEFY9iEHUZPThT/s320/tweetaddacc.png&quot; width=&quot;164&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;gt;After adding your account. Launch the App again and just tweet.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeEwW9gii4FaMCDsxuQv36lr5Fx7OmhLrHAO-KafqfNofzOFh_X4ffVDNidzilEMQviqPkKA7LoSxFqVDzFCKsQXjKN7LWErK0O8quFNv0Wx1E03uuQjryTgMPwnRJxMV23FUAsf3IY3M_/s1600/tweetsend.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeEwW9gii4FaMCDsxuQv36lr5Fx7OmhLrHAO-KafqfNofzOFh_X4ffVDNidzilEMQviqPkKA7LoSxFqVDzFCKsQXjKN7LWErK0O8quFNv0Wx1E03uuQjryTgMPwnRJxMV23FUAsf3IY3M_/s400/tweetsend.png&quot; width=&quot;202&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So you are ready to send your own tweet from your own App.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
There are lots customization that you can do with this framework, like you can tweet pictures, url, can see your friends tweet, search something on twitter,get tweets from particular accounts and lot more.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Well this was just a basic, in the coming post we will fully customize our LetsTweet Application&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Stay Tuned.. :)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/3771866322618537194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/beginning-twitter-integration-ios-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3771866322618537194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/3771866322618537194'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/beginning-twitter-integration-ios-5.html' title='Beginning Twitter integration iOS 5: Part 1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh07zKsXNOi_fryj2AQUYSuHb6ec5QMPrxM6on7N-PGSPCCbJGuiwueHTIv0OuPRclHsnhaVj2crq0IVMWNCfC3Q93dmSsd8LiHtGHwVvXMfy6CeTXKVnCgzZwhxikmVHrhVqWi-62kgwIq/s72-c/twitterframework.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-2543332036564292703</id><published>2011-12-16T23:55:00.000+05:30</published><updated>2011-12-16T23:55:51.891+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="mobile framework"/><category scheme="http://www.blogger.com/atom/ns#" term="rhodes"/><category scheme="http://www.blogger.com/atom/ns#" term="rhoMobile"/><title type='text'>All you need to know about RhoMobile</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: -1.0cm; text-align: justify; text-justify: inter-ideograph;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;Rhomobile, selected Best Startup at Interop 2009, lets developers use HTML and Ruby to create native iPhone, BlackBerry, Windows Mobile, Symbian, and Android applications. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;Rhodes is a free and open source MVC-based framework written in Ruby under the MIT license for building native cross-platform mobile development applications. Rhodes enables developers to harness their traditional web skills such as HTML, HTML5, CSS, and JavaScript, instead of in Objective-C or other complex native device OS language, to create a native app, and porting the app in cross operating systems such as Android, Apple’s iPhone and iPad, BlackBerry, Windows Mobile, Symbian and HP/Palm&#39;s Linux-based WebOS.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;These native device applications leverage device capabilities such as GPS, accelerometer, Multimedia, PIM(Personal Information Management) data, Bluetooth, geolocation, camera, native mapping, push notifications, alerts, calendar, barcode reading, jQTouch and signature capture in app.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;RhoSync&lt;/b&gt; is the fastest and most scalable sync server produced by Rhomobile that enables access and edit data irrespective of connectivity. RhoSync is useful for mobile apps dealing with data from a web app that requires a two-way sync with offline activity support. RhoSync 2.0 is optimized to automatic synchronization of backend enterprise app data to the mobile device.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;RhoHub&lt;/b&gt; is a Rhomobile service for mobile applications that integrates Rhodes platform and RhoSync, a standalone sync server for enterprise data. RhoHub is the first development-as-a-service offering that allows developers to deploy mobile application apps, builds, and sync servers to the cloud across multiple smartphone operating systems. RhoSync server provides faster access to synced local data and optimized native styling for all smartphones. It also offers easy access to offline and disconnected data for the users of applications. &amp;nbsp;iPhone developers can leverage the RhoHub RhoSync server to test and deploy sync-enabled Rhodes applications.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;RhoGallery&lt;/b&gt; is Rhomobile’s Enterprise App Store that offers enterprise mobile app management solution. RhoGallery provides easy access for employees to provision mobile apps on their smartphones and easily manage it with updates.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Rhodes developer&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;Rhomobile allows Rhodes developers to leverage their existing web skills using HTML to create powerful native Rhodes mobile apps that work across all major smartphones, Leveraging the latest technology, standards and best practices in Rhodes development, our proficient Rhodes developers are highly committed and proficient in Rhodes programming language to build mobile applications that have a native look and feel. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;Rhodes framework allows developers to build mobile applications with HTML and Ruby rather than Objective C across cross-platform OS such as iPhone, Blackberry, Windows Mobile, Symbian, and Android. Our team of dedicated Rhodes developers can build and deploy mobile apps in multiple operating systems. Our skilled Rhodes mobile developers can develop native applications that access and create events in its native device calendar, with Bluetooth connectivity to their apps.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: Calibri;&quot;&gt;Features of Rhomobile:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;1. &amp;nbsp;&lt;b&gt;Portability-&lt;/b&gt; &amp;nbsp;write once, deploy on all major devices.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;2. &amp;nbsp;&lt;b&gt;Enterprise Security Compliance-&lt;/b&gt; Use Rhomobile’s secure model to secure your mobile solutions from end to end.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;3. &lt;b&gt;Dead Simple App Integration-&lt;/b&gt; Easily extend your backend web services to native clients.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;4. &lt;b&gt;&amp;nbsp;Synced offline Data-&lt;/b&gt; Give end users the ability to use apps with or without a connection through their own local copy of data.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;5. &lt;b&gt;Native Access-&lt;/b&gt;&amp;nbsp; Exploit the native device capabilities such as: GPS, PIM Contacts, Camera, etc.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;6. &lt;b&gt;App and Data Management:&lt;/b&gt; Easily provision and manage apps and data to your end users, including an ability to remotely wipe apps and data.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;My Opinion:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;Building an application using rhoMobile can be done easily using HTML and javascript, But to support the MVC architecture Ruby to be used.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;RhoMobile is very good for the application that are Data Centric.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;RhoMobile has a great support for all major mobile platforms. The only problem is here learning Ruby, well but that can be resolved too, As learning a new language is always fun.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;The other problem is that the cost issue as mentioned above creating a simple app is of no charge, but for enterprise based application will cost Commercial Licenses of Rhodes, which includes updates and commercial grade support for one year, is available for $1,000 per app for an unlimited number of users.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/2543332036564292703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/all-you-need-to-know-about-rhomobile.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/2543332036564292703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/2543332036564292703'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/all-you-need-to-know-about-rhomobile.html' title='All you need to know about RhoMobile'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5431167820969678262.post-2032141787113016570</id><published>2011-12-16T19:53:00.000+05:30</published><updated>2011-12-16T19:53:27.061+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Appcelerator"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Titanium Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="xcode with Appcelerator"/><title type='text'>Running Appcelerator project in Xcode.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;Couple of days earlier, I was more busy in finding the best mobile framework&amp;nbsp;suitable for building iOS Apps, without diving into native code.&lt;br /&gt;
&lt;br /&gt;
I came across this Appcelerator Titanium. I found this pretty interesting, But searching for while I could not found that how it could be&amp;nbsp;beneficial for an iOS developer like me.&lt;br /&gt;
&lt;br /&gt;
I was more interested in running the appcelerator project in Xcode. After juggling for a while I managed to do that.&lt;br /&gt;
Lets start Munching:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1:&lt;/b&gt; &amp;nbsp;Download the Titanium Studio from :&amp;nbsp;http://www.appcelerator.com/products/titanium-studio/&lt;br /&gt;
&lt;br /&gt;
Now install it on your Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2:&lt;/b&gt; Launch the Titanium for the Application folder.&lt;br /&gt;
Below is the Titanium IDE&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM6YfOPklU6FWNIbs8yRXLNrYITSKh9RRv2Awg7OEZVu5xNu570qKl0jUmtBgxElSdq46uORBqA3-pl4wOW7sxDsSTt4iXYx01xofXrCsE_8pnLH7LezHKNQwfkPZI1tZwhdswVGvIinuM/s1600/titanium+IDE.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM6YfOPklU6FWNIbs8yRXLNrYITSKh9RRv2Awg7OEZVu5xNu570qKl0jUmtBgxElSdq46uORBqA3-pl4wOW7sxDsSTt4iXYx01xofXrCsE_8pnLH7LezHKNQwfkPZI1tZwhdswVGvIinuM/s640/titanium+IDE.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM6YfOPklU6FWNIbs8yRXLNrYITSKh9RRv2Awg7OEZVu5xNu570qKl0jUmtBgxElSdq46uORBqA3-pl4wOW7sxDsSTt4iXYx01xofXrCsE_8pnLH7LezHKNQwfkPZI1tZwhdswVGvIinuM/s1600/titanium+IDE.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Step 3. &amp;nbsp;&lt;/b&gt;Now Go to File&amp;gt;New&amp;gt;Titanium Mobile Project.&lt;br /&gt;
&lt;br /&gt;
You will see the similar screen as below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4w9N5eiTZdWxGlN9uIC7pZgGZw0x2Xw5Zg83ZW-QYWqiJu9QZO6-5osGvWI-QLMR8M9PITt5hfozhhe-OCshDcbVunBWtDTDqWLECv5xbr4q0Lf4OpSi1abclCLsoRb-e5rUPrPcOeddW/s1600/firstApp.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;625&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4w9N5eiTZdWxGlN9uIC7pZgGZw0x2Xw5Zg83ZW-QYWqiJu9QZO6-5osGvWI-QLMR8M9PITt5hfozhhe-OCshDcbVunBWtDTDqWLECv5xbr4q0Lf4OpSi1abclCLsoRb-e5rUPrPcOeddW/s640/firstApp.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4: &lt;/b&gt;Click on Next , Here you can either choose a pre-build template or can go without a template.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAsXWkT_FexNyGYQfVhr9ZOr8Ss5_HHS8u064DHm_SpCqzma3mOR7pOlbNuBSrR774yTrMapY5VrZ6BBorugIfMZU9ZcNxPfG2vvyvyyXqnMIkInH3zuY0LMpurn-HvbRQGf2elaSHUIKX/s1600/template.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;393&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAsXWkT_FexNyGYQfVhr9ZOr8Ss5_HHS8u064DHm_SpCqzma3mOR7pOlbNuBSrR774yTrMapY5VrZ6BBorugIfMZU9ZcNxPfG2vvyvyyXqnMIkInH3zuY0LMpurn-HvbRQGf2elaSHUIKX/s400/template.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I have selected the &lt;b&gt;Geolocation mobile client&lt;/b&gt; template.&lt;br /&gt;
&lt;br /&gt;
Step 5: Hit Finish and you are done.&lt;br /&gt;
&lt;br /&gt;
What you see now is your project in the IDE. On the left pane double click &amp;nbsp;to the &lt;b&gt;tiapp.xml &lt;/b&gt;file.&lt;br /&gt;
It will open it for you in the right pane.&lt;br /&gt;
This is where you do your project settings, below is the similar screen that you will get.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisaUZN-wXD2pr_5vSqZ8fiRq-C36TLKZ5EZ6k5UtX8D2qSiwYO0opcIbZWROxe_IJ5vzx-MXcTbDurEnnZxHm55ZnKR4SD8iHpeE_r7DHeUkBOkR0bpTpBEhbbQKiXgadyiQ-cblGWacEl/s1600/firstscreen.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisaUZN-wXD2pr_5vSqZ8fiRq-C36TLKZ5EZ6k5UtX8D2qSiwYO0opcIbZWROxe_IJ5vzx-MXcTbDurEnnZxHm55ZnKR4SD8iHpeE_r7DHeUkBOkR0bpTpBEhbbQKiXgadyiQ-cblGWacEl/s640/firstscreen.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
As you can see under the Resource folder you have your &lt;b&gt;app.js&lt;/b&gt;&amp;nbsp;file, which is the main file where you code your javascript.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
As you can see on the right side&amp;nbsp;&lt;b&gt;&amp;nbsp;&lt;/b&gt;you have TiApp Editor open and you have your &quot;MyFirst App settings in front of you&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The beauty of this Appcelerator is that you code only once and can deploy for iPhone,iPad,Android, Mobile web.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
We are not diving into the programming but as we have selected the &lt;b&gt;GeoLocation mobile client&lt;/b&gt; template. Lets see what this template has done for us.&lt;br /&gt;
&lt;br /&gt;
Lets build this project&lt;br /&gt;
&lt;br /&gt;
In between the toolbars you can see the Run button. Click on the small arrow next to it.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTrWRzas94LDKlCSEHe96PjJ3XDt1CfA9B77SoExMPXMeN7M-BPuuRuj0VB5lwLa9KHjO7u2p_GoIGiiL1uDqyf35g38WW9peil-VcRC_YD0OTHlvFGn8ljFGRIk1MOgF7aB6_ZzlvsOfH/s1600/runConfig.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTrWRzas94LDKlCSEHe96PjJ3XDt1CfA9B77SoExMPXMeN7M-BPuuRuj0VB5lwLa9KHjO7u2p_GoIGiiL1uDqyf35g38WW9peil-VcRC_YD0OTHlvFGn8ljFGRIk1MOgF7aB6_ZzlvsOfH/s640/runConfig.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTrWRzas94LDKlCSEHe96PjJ3XDt1CfA9B77SoExMPXMeN7M-BPuuRuj0VB5lwLa9KHjO7u2p_GoIGiiL1uDqyf35g38WW9peil-VcRC_YD0OTHlvFGn8ljFGRIk1MOgF7aB6_ZzlvsOfH/s1600/runConfig.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTrWRzas94LDKlCSEHe96PjJ3XDt1CfA9B77SoExMPXMeN7M-BPuuRuj0VB5lwLa9KHjO7u2p_GoIGiiL1uDqyf35g38WW9peil-VcRC_YD0OTHlvFGn8ljFGRIk1MOgF7aB6_ZzlvsOfH/s1600/runConfig.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTrWRzas94LDKlCSEHe96PjJ3XDt1CfA9B77SoExMPXMeN7M-BPuuRuj0VB5lwLa9KHjO7u2p_GoIGiiL1uDqyf35g38WW9peil-VcRC_YD0OTHlvFGn8ljFGRIk1MOgF7aB6_ZzlvsOfH/s1600/runConfig.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;gt;Select the option &lt;b&gt;Run Configurations.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
You will see the below screen. Select the Project that you wan to run, for us is MyFirstApp.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Choose the &lt;b&gt;iOS SDK as 4.0 or above not SDK 5 &lt;/b&gt;(As for me while choosing iOS SDK 5 it gives error).&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
After doing this, Click on the Run button.(bottom right)&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7fVG3vLbkcdIuGHQoiAbmSjyU7KwyUuRI8PbmhsCL6dBZ2bfJhr4f7c-W35_lvNi6dDt3DN-zkEEoOCRbWMRVuw8jOFAaFcWWfl2GvqJ0u6tgCCFOry32FWJNstgczT4-NjZ0L9jeePlq/s1600/buildconfig.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7fVG3vLbkcdIuGHQoiAbmSjyU7KwyUuRI8PbmhsCL6dBZ2bfJhr4f7c-W35_lvNi6dDt3DN-zkEEoOCRbWMRVuw8jOFAaFcWWfl2GvqJ0u6tgCCFOry32FWJNstgczT4-NjZ0L9jeePlq/s640/buildconfig.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;gt; You can see all the logs in the bottom console window.&lt;br /&gt;
&lt;br /&gt;
Now when the build done. You might be thinking that where is the Xcode in this.&lt;br /&gt;
&lt;br /&gt;
I will say here comes the Xcode.&lt;br /&gt;
&lt;br /&gt;
Navigate to the workspace directory that you set while installing or running the Titanium studio.&lt;br /&gt;
The path will be like.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;yourWorkspaceFolder&amp;gt;MyFirstApp&amp;gt;build&amp;gt;iphone&amp;gt;MyFristApp.xcodeproj&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So this is your Xcode project file.&lt;br /&gt;
Run it and it will open the Xcode for you.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Now you have your favorite IDE Xcode in front of you and a project loaded in it.&lt;br /&gt;
Then what are you waiting for hit the &lt;b&gt;Build and Run&lt;/b&gt; button&lt;br /&gt;
&lt;br /&gt;
Below is what you will see.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiPL8ZjvlWQ_YKLSZxEeE2ul-em2spf1v0dKtsP6I34vwLNeHCVxNIvuS7mO3jiVITiEYroPN6j3wvDEfg2Fvz63FCB1i-sdOxdt3KIS5AxaDJeTJqEwSQQQ7G4otigRk9aaW0x00Kwegj/s1600/runPro.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiPL8ZjvlWQ_YKLSZxEeE2ul-em2spf1v0dKtsP6I34vwLNeHCVxNIvuS7mO3jiVITiEYroPN6j3wvDEfg2Fvz63FCB1i-sdOxdt3KIS5AxaDJeTJqEwSQQQ7G4otigRk9aaW0x00Kwegj/s640/runPro.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;gt; So you can see that we have only used a single template for Geolocation and we have this beautiful app showing your current location.&lt;b&gt; (dont worry simulator does not show the actual location, it will always show the Apple&amp;nbsp;headquarters)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Final Words:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
You can build a whole app using Titanium Studio using just JavaScript.(good for web developers) and can deploy it to the various mobile devices.&lt;br /&gt;
&lt;br /&gt;
If you want to extend your project using the native language i.e using Objective-C, then you have to write modules and then attach it to your existing project.&lt;br /&gt;
&lt;br /&gt;
Here is a tutorial link for that&amp;nbsp;&lt;a href=&quot;https://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide&quot;&gt;iOS module Development&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iosmuncher.blogspot.com/feeds/2032141787113016570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/running-appcelerator-project-in-xcode.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/2032141787113016570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5431167820969678262/posts/default/2032141787113016570'/><link rel='alternate' type='text/html' href='http://iosmuncher.blogspot.com/2011/12/running-appcelerator-project-in-xcode.html' title='Running Appcelerator project in Xcode.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04021310060961646292</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM6YfOPklU6FWNIbs8yRXLNrYITSKh9RRv2Awg7OEZVu5xNu570qKl0jUmtBgxElSdq46uORBqA3-pl4wOW7sxDsSTt4iXYx01xofXrCsE_8pnLH7LezHKNQwfkPZI1tZwhdswVGvIinuM/s72-c/titanium+IDE.png" height="72" width="72"/><thr:total>1</thr:total></entry></feed>