<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iPhone Tutorial &#124; iPhone iOS4 iPad SDK Development &#38; Programming Blog &#187; iPhone Apps</title>
	<atom:link href="http://www.edumobile.org/iphone/category/iphone-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edumobile.org/iphone</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 09:42:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Photos Application in iPhone</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/photos-application-in-iphone/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/photos-application-in-iphone/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:41:24 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=3393</guid>
		<description><![CDATA[In this application we will see how to multiple photos select from the photo gallery and we can display, rotate and swipe this photo in the view. So let see how it will worked.
Step 1: Open the Xcode, Create a new project using View Base application. Give the application “PhotosApp”.
Step 2: Xcode automatically creates the [...]]]></description>
			<content:encoded><![CDATA[<p>In this application we will see how to multiple photos select from the photo gallery and we can display, rotate and swipe this photo in the view. So let see how it will worked.</p>
<p>Step 1: Open the Xcode, Create a new project using View Base application. Give the application “PhotosApp”.</p>
<p>Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.</p>
<p>Step 3: Expand classes and notice Interface Builder created the ViewController class for you. Expand Resources and  notice the template generated a separate nib, PhotosAppViewController.xib for the ImageClick application.</p>
<p>Step 4: We need to add the framework MobileCoreServices.framework</p>
<p>Step 5: Open the PhotosAppViewController.h file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span><br />
<span class="co1">#import &lt;MobileCoreServices/MobileCoreServices.h&gt;</span><br />
<span class="kw1">@interface</span> PhotosAppViewController <span class="sy0">:</span> UIViewController &lt;UINavigationControllerDelegate,<br />
UIImagePickerControllerDelegate, UIPopoverControllerDelegate, UIGestureRecognizerDelegate&gt;<br />
<span class="br0">&#123;</span><br />
CGFloat Scale;<br />
CGFloat XPosition;<br />
CGFloat YPosition;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>Photosadd<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender;<br />
<span class="kw1">@end</span></div>
</div>
<p>Step 6: Double click the PhotosAppViewController.xib file and open it to the interface Builder. Drag the Toolbar and Bar Button Item from the library and place it to the View window. Now select the button and bring up Connection Inspector and connect Touch Up Inside to the File&#8217;s Owner icon and select Photosadd: method and drag the label from library and place it to the view window and bring up Attribute Inspector change the text “Swipe Photos Here ” . Now Save the .xib file, close it and go back to the Xcode.</p>
<p>Step 7: Open the PhotosAppViewController.m file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &quot;PhotosAppViewController.h&quot;</span><br />
<span class="kw1">@implementation</span> PhotosAppViewController<br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>dealloc<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super dealloc<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>didReceiveMemoryWarning<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Releases the view if it doesn&#8217;t have a superview.</span><br />
<span class="br0">&#91;</span>super didReceiveMemoryWarning<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any cached data, images, etc that aren&#8217;t in use.</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>Photosadd<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender <span class="br0">&#123;</span><br />
UIImagePickerController <span class="sy0">*</span>controller <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIImagePickerController alloc<span class="br0">&#93;</span> init<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>controller setMediaTypes<span class="sy0">:</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> arrayWithObject<span class="sy0">:</span>kUTTypeImage<span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>controller setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
UIPopoverController <span class="sy0">*</span>popover <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIPopoverController alloc<span class="br0">&#93;</span><br />
initWithContentViewController<span class="sy0">:</span>controller<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>popover setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>popover presentPopoverFromBarButtonItem<span class="sy0">:</span>sender<br />
permittedArrowDirections<span class="sy0">:</span>UIPopoverArrowDirectionUp animated<span class="sy0">:</span><span class="kw2">YES</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>imagePickerController<span class="sy0">:</span><span class="br0">&#40;</span>UIImagePickerController <span class="sy0">*</span><span class="br0">&#41;</span>picker didFinishPickingMediaWithInfo<span class="sy0">:</span><br />
<span class="br0">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/"><span class="kw5">NSDictionary</span></a> <span class="sy0">*</span><span class="br0">&#41;</span>info <span class="br0">&#123;</span><br />
UIImage <span class="sy0">*</span>image <span class="sy0">=</span> <span class="br0">&#91;</span>info objectForKey<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;UIImagePickerControllerOriginalImage&quot;</span><span class="br0">&#93;</span>;<br />
UIView <span class="sy0">*</span>holderView <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIView alloc<span class="br0">&#93;</span> initWithFrame<span class="sy0">:</span>CGRectMake<span class="br0">&#40;</span>0, 0, image.size.width,<br />
image.size.height<span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
UIImageView <span class="sy0">*</span>imageview <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIImageView alloc<span class="br0">&#93;</span> initWithFrame<span class="sy0">:</span><span class="br0">&#91;</span>holderView frame<span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>imageview setImage<span class="sy0">:</span>image<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>holderView addSubview<span class="sy0">:</span>imageview<span class="br0">&#93;</span>;<br />
UIPinchGestureRecognizer <span class="sy0">*</span>pinchRecognizer <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIPinchGestureRecognizer alloc<span class="br0">&#93;</span><br />
initWithTarget<span class="sy0">:</span>self action<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>scale<span class="sy0">:</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>pinchRecognizer setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>holderView addGestureRecognizer<span class="sy0">:</span>pinchRecognizer<span class="br0">&#93;</span>;<br />
UIRotationGestureRecognizer <span class="sy0">*</span>rotationRecognizer <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIRotationGestureRecognizer alloc<span class="br0">&#93;</span><br />
initWithTarget<span class="sy0">:</span>self action<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>rotate<span class="sy0">:</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>rotationRecognizer setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>holderView addGestureRecognizer<span class="sy0">:</span>rotationRecognizer<span class="br0">&#93;</span>;<br />
UIPanGestureRecognizer <span class="sy0">*</span>panRecognizer <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIPanGestureRecognizer alloc<span class="br0">&#93;</span><br />
initWithTarget<span class="sy0">:</span>self action<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>move<span class="sy0">:</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>panRecognizer setMinimumNumberOfTouches<span class="sy0">:</span>1<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>panRecognizer setMaximumNumberOfTouches<span class="sy0">:</span>1<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>panRecognizer setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>holderView addGestureRecognizer<span class="sy0">:</span>panRecognizer<span class="br0">&#93;</span>;<br />
UITapGestureRecognizer <span class="sy0">*</span>tapRecognizer <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UITapGestureRecognizer alloc<span class="br0">&#93;</span><br />
initWithTarget<span class="sy0">:</span>self action<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>tapped<span class="sy0">:</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>tapRecognizer setNumberOfTapsRequired<span class="sy0">:</span>1<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>tapRecognizer setDelegate<span class="sy0">:</span>self<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>holderView addGestureRecognizer<span class="sy0">:</span>tapRecognizer<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>self.view addSubview<span class="sy0">:</span>holderView<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>scale<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender <span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>self.view bringSubviewToFront<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender view<span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender state<span class="br0">&#93;</span> <span class="sy0">==</span> UIGestureRecognizerStateEnded<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
Scale <span class="sy0">=</span> <span class="nu0">1.0</span>;<br />
<span class="kw1">return</span>;<br />
<span class="br0">&#125;</span><br />
CGFloat scale <span class="sy0">=</span> 1.0 <span class="sy0">-</span> <span class="br0">&#40;</span>Scale <span class="sy0">-</span> <span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender scale<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
CGAffineTransform currentTransform <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender<br />
view<span class="br0">&#93;</span>.transform;<br />
CGAffineTransform newTransform <span class="sy0">=</span> CGAffineTransformScale<span class="br0">&#40;</span>currentTransform, scale,<br />
scale<span class="br0">&#41;</span>;<br />
<span class="br0">&#91;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender view<span class="br0">&#93;</span> setTransform<span class="sy0">:</span>newTransform<span class="br0">&#93;</span>;<br />
Scale <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#40;</span>UIPinchGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender scale<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>move<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender <span class="br0">&#123;</span><br />
<span class="br0">&#91;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UITapGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender view<span class="br0">&#93;</span> layer<span class="br0">&#93;</span> removeAllAnimations<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>self.view bringSubviewToFront<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender view<span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
CGPoint translatedPoint <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender translationInView<span class="sy0">:</span>self.view<span class="br0">&#93;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender state<span class="br0">&#93;</span> <span class="sy0">==</span> UIGestureRecognizerStateBegan<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
XPosition <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>sender view<span class="br0">&#93;</span> center<span class="br0">&#93;</span>.x;<br />
YPosition <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>sender view<span class="br0">&#93;</span> center<span class="br0">&#93;</span>.y;<br />
<span class="br0">&#125;</span><br />
translatedPoint <span class="sy0">=</span> CGPointMake<span class="br0">&#40;</span>XPosition<span class="sy0">+</span>translatedPoint.x, YPosition<span class="sy0">+</span>translatedPoint.y<span class="br0">&#41;</span>;<br />
<span class="br0">&#91;</span><span class="br0">&#91;</span>sender view<span class="br0">&#93;</span> setCenter<span class="sy0">:</span>translatedPoint<span class="br0">&#93;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender state<span class="br0">&#93;</span> <span class="sy0">==</span> UIGestureRecognizerStateEnded<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
CGFloat finalX <span class="sy0">=</span> translatedPoint.x <span class="sy0">+</span> <span class="br0">&#40;</span>.35<span class="sy0">*</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender<br />
velocityInView<span class="sy0">:</span>self.view<span class="br0">&#93;</span>.x<span class="br0">&#41;</span>;<br />
CGFloat finalY <span class="sy0">=</span> translatedPoint.y <span class="sy0">+</span> <span class="br0">&#40;</span>.35<span class="sy0">*</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UIPanGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender<br />
velocityInView<span class="sy0">:</span>self.view<span class="br0">&#93;</span>.y<span class="br0">&#41;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span>UIDeviceOrientationIsPortrait<span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span>UIDevice currentDevice<span class="br0">&#93;</span> orientation<span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span>finalX &lt; 0<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalX <span class="sy0">=</span> <span class="nu0">0</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>finalX &gt; 768<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalX <span class="sy0">=</span> <span class="nu0">768</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span>finalY &lt; 0<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalY <span class="sy0">=</span> <span class="nu0">0</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>finalY &gt; 1024<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalY <span class="sy0">=</span> <span class="nu0">1024</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span> <span class="br0">&#123;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span>finalX &lt; 0<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalX <span class="sy0">=</span> <span class="nu0">0</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>finalX &gt; 1024<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalX <span class="sy0">=</span> <span class="nu0">768</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span>finalY &lt; 0<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalY <span class="sy0">=</span> <span class="nu0">0</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>finalY &gt; 768<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
finalY <span class="sy0">=</span> <span class="nu0">1024</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="br0">&#91;</span>UIView beginAnimations<span class="sy0">:</span><span class="kw2">nil</span> context<span class="sy0">:</span><span class="kw2">NULL</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>UIView setAnimationDuration<span class="sy0">:</span>.35<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>UIView setAnimationCurve<span class="sy0">:</span>UIViewAnimationCurveEaseOut<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span><span class="br0">&#91;</span>sender view<span class="br0">&#93;</span> setCenter<span class="sy0">:</span>CGPointMake<span class="br0">&#40;</span>finalX, finalY<span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>UIView commitAnimations<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>tapped<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender <span class="br0">&#123;</span><br />
<span class="br0">&#91;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><span class="br0">&#40;</span>UITapGestureRecognizer<span class="sy0">*</span><span class="br0">&#41;</span>sender view<span class="br0">&#93;</span> layer<span class="br0">&#93;</span> removeAllAnimations<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>gestureRecognizer<span class="sy0">:</span><span class="br0">&#40;</span>UIGestureRecognizer <span class="sy0">*</span><span class="br0">&#41;</span>gestureRecognizer<br />
shouldRecognizeSimultaneouslyWithGestureRecognizer<span class="sy0">:</span><span class="br0">&#40;</span>UIGestureRecognizer<br />
<span class="sy0">*</span><span class="br0">&#41;</span>otherGestureRecognizer <span class="br0">&#123;</span><br />
<span class="kw1">return</span> <span class="sy0">!</span><span class="br0">&#91;</span>gestureRecognizer isKindOfClass<span class="sy0">:</span><span class="br0">&#91;</span>UIPanGestureRecognizer class<span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="co1">#pragma mark &#8211; View lifecycle</span><br />
<span class="coMULTI">/*<br />
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.<br />
- (void)viewDidLoad<br />
{<br />
[super viewDidLoad];<br />
}<br />
*/</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidUnload<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super viewDidUnload<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any retained subviews of the main view.</span><br />
<span class="co2">// e.g. self.myOutlet = nil;</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>shouldAutorotateToInterfaceOrientation<span class="sy0">:</span><span class="br0">&#40;</span>UIInterfaceOrientation<span class="br0">&#41;</span>interfaceOrientation<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Return YES for supported orientations</span><br />
<span class="kw1">return</span> <span class="kw2">YES</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">@end</span></div>
</div>
<p>Step 8: Now Compile and run the application on the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/11.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/11-240x300.jpg" alt="" title="1" width="240" height="300" class="alignnone size-medium wp-image-3395" /></a></p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/11.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/11-240x300.jpg" alt="" title="1" width="240" height="300" class="alignnone size-medium wp-image-3395" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/photos-application-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageClick Application in iPhone</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/imageclick-application-in-iphone/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/imageclick-application-in-iphone/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:30:55 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=3387</guid>
		<description><![CDATA[In this application we will see how to image capture in iPhone without using camera. So let see how it will worked.
Step 1: Open the Xcode, Create a new project using View Base application. Give the application “ImageClick”.
Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the [...]]]></description>
			<content:encoded><![CDATA[<p>In this application we will see how to image capture in iPhone without using camera. So let see how it will worked.</p>
<p>Step 1: Open the Xcode, Create a new project using View Base application. Give the application “ImageClick”.</p>
<p>Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.</p>
<p>Step 3: Expand classes and notice Interface Builder created the ViewController class for you. Expand Resources and notice the template generated a separate nib, ImageClickViewController.xib for the ImageClick application.</p>
<p>Step 4: We need to add one image in the resource in the application. Give the name </p>
<p>Step 5: Open the ImageClickViewController.h file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span><br />
<span class="kw1">@interface</span> ImageClickViewController <span class="sy0">:</span> UIViewController <span class="br0">&#123;</span><br />
UIImageView <span class="sy0">*</span>image;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet UIImageView <span class="sy0">*</span>image;<br />
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>PhotoCapture<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender;<br />
<span class="kw1">@end</span></div>
</div>
<p>Step 6: Double click the ImageClickViewController.xib file and open it to the interface Builder. Drag the image view and round rect button from the library and place it to the View window. Now select the button and bring up Connection<br />
Inspector and connect Touch Up Inside to the File&#8217;s Owner icon and select PhotoCapture: method and select the imageview and bring up Attribute Inspector and select the background image.Now Save the .xib file, close it and go back to the Xcode.</p>
<p>Step 7: Open the ImageClickViewController.m file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &quot;ImageClickViewController.h&quot;</span><br />
<span class="kw1">@implementation</span> ImageClickViewController<br />
<span class="kw1">@synthesize</span> image;<br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>dealloc<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super dealloc<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>didReceiveMemoryWarning<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Releases the view if it doesn&#8217;t have a superview.</span><br />
<span class="br0">&#91;</span>super didReceiveMemoryWarning<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any cached data, images, etc that aren&#8217;t in use.</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>PhotoCapture<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender<br />
<span class="br0">&#123;</span><br />
UIGraphicsBeginImageContext<span class="br0">&#40;</span>image.frame.size<span class="br0">&#41;</span>;<br />
<span class="br0">&#91;</span>self.view.layer renderInContext<span class="sy0">:</span>UIGraphicsGetCurrentContext<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#93;</span>;<br />
UIImage <span class="sy0">*</span>viewImage <span class="sy0">=</span> UIGraphicsGetImageFromCurrentImageContext<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
UIGraphicsEndImageContext<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
UIImageWriteToSavedPhotosAlbum<span class="br0">&#40;</span>viewImage, <span class="kw2">nil</span>, <span class="kw2">nil</span>, <span class="kw2">nil</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="co1">#pragma mark &#8211; View lifecycle</span><br />
<span class="coMULTI">/*<br />
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.<br />
- (void)viewDidLoad<br />
{<br />
[super viewDidLoad];<br />
}<br />
*/</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidUnload<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super viewDidUnload<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any retained subviews of the main view.</span><br />
<span class="co2">// e.g. self.myOutlet = nil;</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>shouldAutorotateToInterfaceOrientation<span class="sy0">:</span><span class="br0">&#40;</span>UIInterfaceOrientation<span class="br0">&#41;</span>interfaceOrientation<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Return YES for supported orientations</span><br />
<span class="kw1">return</span> <span class="br0">&#40;</span>interfaceOrientation <span class="sy0">==</span> UIInterfaceOrientationPortrait<span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">@end</span></div>
</div>
<p>Step 8: Now Compile and run the application on the Simulator. Click the “Capture Snap” button, it will automatically capture the background image and save it in the photos.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/1.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/1-160x300.jpg" alt="" title="1" width="160" height="300" class="alignnone size-medium wp-image-3388" /></a></p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/22.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/22-162x300.jpg" alt="" title="2" width="162" height="300" class="alignnone size-medium wp-image-3389" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/imageclick-application-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EmailSend Application in iPhone</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/emailsend-application-in-iphone/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/emailsend-application-in-iphone/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 10:40:08 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=3378</guid>
		<description><![CDATA[In this application we will see how to Email Send in iPhone. So let see how it will
worked.
My last post you can find out from here (attached the previous post link)
Step 1: Open the Xcode, Create a new project using View Base application. Give the application “EmailSend”.
Step 2: Xcode automatically creates the directory structure and [...]]]></description>
			<content:encoded><![CDATA[<p>In this application we will see how to Email Send in iPhone. So let see how it will<br />
worked.</p>
<p>My last post you can find out from here (attached the previous post link)</p>
<p>Step 1: Open the Xcode, Create a new project using View Base application. Give the application “EmailSend”.</p>
<p>Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.</p>
<p>Step 3: Expand classes and notice Interface Builder created the ViewController class for you. Expand Resources and notice the template generated a separate nib, EmailSendViewController.xib for the EmailSend application.</p>
<p>Step 4: We need to add MessageUI.framework in the application. </p>
<p>Step 5: Open the EmailSendViewController.h file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span><br />
<span class="co1">#import &lt;MessageUI/MessageUI.h&gt;</span><br />
<span class="kw1">@interface</span> EmailSendViewController <span class="sy0">:</span> UIViewController<br />
&lt;MFMailComposeViewControllerDelegate&gt;<span class="br0">&#123;</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>SendMail<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender;<br />
<span class="kw1">@end</span></div>
</div>
<p>Step 6: Double click the EmailSendViewController.xib file and open it to the interface Builder. Drag the round rect button from the library and place it to the View window. Now select the button and bring up Connection Inspector and connect Touch Up Inside to the File&#8217;s Owner icon and select SendMail: method. Now Save the .xib file, close it and go back to the Xcode.</p>
<p>Step 7: Open the AlertViewViewController.m file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &quot;EmailSendViewController.h&quot;</span><br />
<span class="kw1">@implementation</span> EmailSendViewController<br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>dealloc<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super dealloc<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>didReceiveMemoryWarning<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Releases the view if it doesn&#8217;t have a superview.</span><br />
<span class="br0">&#91;</span>super didReceiveMemoryWarning<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any cached data, images, etc that aren&#8217;t in use.</span><br />
<span class="br0">&#125;</span><br />
<span class="co1">#pragma mark &#8211; View lifecycle</span><br />
<span class="coMULTI">/*<br />
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.<br />
- (void)viewDidLoad<br />
{<br />
[super viewDidLoad];<br />
}<br />
*/</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidUnload<br />
<span class="br0">&#123;</span><br />
<span class="br0">&#91;</span>super viewDidUnload<span class="br0">&#93;</span>;<br />
<span class="co2">// Release any retained subviews of the main view.</span><br />
<span class="co2">// e.g. self.myOutlet = nil;</span><br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>shouldAutorotateToInterfaceOrientation<span class="sy0">:</span><span class="br0">&#40;</span>UIInterfaceOrientation<span class="br0">&#41;</span>interfaceOrientation<br />
<span class="br0">&#123;</span><br />
<span class="co2">// Return YES for supported orientations</span><br />
<span class="kw1">return</span> <span class="br0">&#40;</span>interfaceOrientation <span class="sy0">==</span> UIInterfaceOrientationPortrait<span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>SendMail<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender<br />
<span class="br0">&#123;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#91;</span>MFMailComposeViewController canSendMail<span class="br0">&#93;</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
MFMailComposeViewController <span class="sy0">*</span>mailer <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>MFMailComposeViewController alloc<span class="br0">&#93;</span> init<span class="br0">&#93;</span>;<br />
mailer.mailComposeDelegate <span class="sy0">=</span> self;<br />
<span class="br0">&#91;</span>mailer setSubject<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;A Message from iPhone&quot;</span><span class="br0">&#93;</span>;<br />
<a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>toRecipients <span class="sy0">=</span> <span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> arrayWithObjects<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;&quot;</span>, <span class="co3">@</span><span class="st0">&quot;&quot;</span>, <span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>mailer setToRecipients<span class="sy0">:</span>toRecipients<span class="br0">&#93;</span>;<br />
<a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>emailBody <span class="sy0">=</span> <span class="co3">@</span><span class="st0">&quot;Have you Nice Day&quot;</span>;<br />
<span class="br0">&#91;</span>mailer setMessageBody<span class="sy0">:</span>emailBody isHTML<span class="sy0">:</span><span class="kw2">NO</span><span class="br0">&#93;</span>;<br />
<span class="co2">// only for iPad</span><br />
<span class="co2">// mailer.modalPresentationStyle = UIModalPresentationPageSheet;</span><br />
<span class="br0">&#91;</span>self presentModalViewController<span class="sy0">:</span>mailer animated<span class="sy0">:</span><span class="kw2">YES</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>mailer release<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">else</span><br />
<span class="br0">&#123;</span><br />
UIAlertView <span class="sy0">*</span>alert <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIAlertView alloc<span class="br0">&#93;</span> initWithTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Failure&quot;</span><br />
message<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Your device doesn&#8217;t support the composer sheet&quot;</span><br />
delegate<span class="sy0">:</span><span class="kw2">nil</span><br />
cancelButtonTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;OK&quot;</span><br />
otherButtonTitles<span class="sy0">:</span> <span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>alert show<span class="br0">&#93;</span>;<br />
<span class="br0">&#91;</span>alert release<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="co1">#pragma mark &#8211; MFMailComposeController delegate</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>mailComposeController<span class="sy0">:</span><span class="br0">&#40;</span>MFMailComposeViewController<span class="sy0">*</span><span class="br0">&#41;</span>controller didFinishWithResult<span class="sy0">:</span><br />
<span class="br0">&#40;</span>MFMailComposeResult<span class="br0">&#41;</span>result error<span class="sy0">:</span><span class="br0">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/"><span class="kw5">NSError</span></a><span class="sy0">*</span><span class="br0">&#41;</span>error<br />
<span class="br0">&#123;</span><br />
<span class="kw1">switch</span> <span class="br0">&#40;</span>result<span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
<span class="kw1">case</span> MFMailComposeResultCancelled<span class="sy0">:</span><br />
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Mail cancelled&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">break</span>;<br />
<span class="kw1">case</span> MFMailComposeResultSaved<span class="sy0">:</span><br />
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Mail saved&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">break</span>;<br />
<span class="kw1">case</span> MFMailComposeResultSent<span class="sy0">:</span><br />
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Mail send&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">break</span>;<br />
<span class="kw1">case</span> MFMailComposeResultFailed<span class="sy0">:</span><br />
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Mail failed&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">break</span>;<br />
<span class="kw1">default</span><span class="sy0">:</span><br />
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Mail not sent&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">break</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#91;</span>self dismissModalViewControllerAnimated<span class="sy0">:</span><span class="kw2">YES</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">@end</span></div>
</div>
<p>Step 8: Now Compile and run the application on the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/EmailSend_Blog.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2012/01/EmailSend_Blog-152x300.jpg" alt="" title="EmailSend_Blog" width="152" height="300" class="alignnone size-medium wp-image-3379" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/emailsend-application-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap in iPhone</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/phonegap-in-iphone/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/phonegap-in-iphone/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 08:02:52 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=3172</guid>
		<description><![CDATA[PhoneGap is an HTML5 app that allow you to author native applications with web technologies and get access to APIs. We need to installed PhoneGap in Xcode 4.]]></description>
			<content:encoded><![CDATA[<p>PhoneGap is an HTML5 app that allow you to author native applications with web technologies and get access to APIs. We need to installed PhoneGap in Xcode 4. For that follow the below requirment:</p>
<p>1. Installed PhoneGap 1.0.0 form<a href="http://www.phonegap.com/support#support-packages"> here</a></p>
<p>2. Close the Xcode before you download the PhoneGap.</p>
<p>My Last post you can find out from here <a href="http://www.edumobile.org/iphone/miscellaneous/text-scroll-in-iphone/">TextScroll</a></p>
<p><strong>Step 1:</strong> Open the Xcode, Create a new project using PhoneGap based application. Give the application “iPhoneGap”(See the figure 1).</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-1.jpg"><img class="size-full wp-image-3179 alignnone" title="PhoneGap-1" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-1.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 1</p>
<p><strong>Step 2: </strong>Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory (Image should be figure2).</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-2.jpg"><img class="size-full wp-image-3180 alignnone" title="PhoneGap-2" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-2.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 2</p>
<p><strong>Step 3: </strong>If  you compile and  run the application, you got the error in the simulator &#8220;ERROR: Start page at www/index.html was not found&#8221;.</p>
<p><strong>Step 4:</strong> Select the Project and open it to the finder (See the figure 3). You can find out  www folder (See figure 4).</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-3.jpg"><img class="alignnone size-full wp-image-3181" title="PhoneGap-3" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-3.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 3</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-4.jpg"><img class="alignnone size-full wp-image-3182" title="PhoneGap-4" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-4.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 4</p>
<p><strong>Step 5: </strong>Drag the www folder in the project, but make sure you select the &#8220;Create folder references foe any added folders (See figure 5).</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-5.jpg"><img class="alignnone size-full wp-image-3183" title="PhoneGap-5" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-5.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 5</p>
<p><strong>Step 6:</strong> Now compile and run the application on the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-6.jpg"><img class="alignnone size-full wp-image-3184" title="PhoneGap-6" src="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/PhoneGap-6.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: center;">Figure 6</p>
<p style="text-align: left;">You can <strong>Download SourceCode</strong> from here</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2011/08/iPhoneGap.zip">iPhoneGap</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/phonegap-in-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top iPhone and iPad Apps of 2010</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/top-iphone-and-ipad-apps-of-2010/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/top-iphone-and-ipad-apps-of-2010/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 08:58:21 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[best apps]]></category>
		<category><![CDATA[top apps]]></category>
		<category><![CDATA[top iphone apps]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2681</guid>
		<description><![CDATA[Here's the top list of iPhone and iPad Apps for 2010. Winners are listed at the end of the post. Take note that Apple has created the top 3 iPad apps themselves.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the top list of iPhone and iPad Apps for 2010. Winners are listed at the end of the post. Take note that Apple has created the top 3 iPad apps themselves.</p>
<blockquote><p>=============================<br />
Overall Top 10 PAID iPhone Apps<br />
=============================</p>
<p>Angry Birds<br />
Doodle Jump – BE WARNED: Insanely Addictive!<br />
Skee-Ball<br />
Bejeweled 2 + Blitz<br />
Fruit Ninja<br />
Cut the Rope<br />
ALL-IN-1 GAMEBOX<br />
The Moron Test<br />
Plants vs. Zombies<br />
Pocket God</p>
<p>==============================<br />
Overall Top 10 FREE iPhone Apps<br />
==============================</p>
<p>Facebook<br />
Angry Birds Lite<br />
Words With Friends Free<br />
Skype<br />
Tap Tap Revenge 3<br />
The Weather Channel®<br />
Paper Toss<br />
Bing<br />
ROCK BAND FREE<br />
Talking Tom Cat</p>
<p>==================================<br />
Overall Top 10 GROSSING iPhone Apps<br />
==================================</p>
<p>MLB.com At Bat 2010<br />
Angry Birds<br />
Call of Duty: Zombies<br />
Bejeweled 2 + Blitz<br />
FriendCaller 3 Pro<br />
Zombie Farm<br />
TomTom U.S.A.<br />
TETRIS®<br />
Plants vs. Zombies<br />
Doodle Jump – BE WARNED: Insanely Addictive!</p>
<p>===========================<br />
Overall Top 10 PAID iPad Apps<br />
===========================</p>
<p>Pages<br />
GoodReader for iPad<br />
Numbers<br />
Angry Birds HD<br />
Keynote<br />
Glee Karaoke<br />
WolframAlpha<br />
Pinball HD<br />
Friendly for Facebook<br />
Star Walk for iPad</p>
<p>===========================<br />
Overall Top 10 FREE iPad Apps<br />
===========================</p>
<p>iBooks<br />
Pandora Radio<br />
Netflix<br />
Google Mobile App<br />
Solitaire<br />
Movies by Flixster – with Rotten Tomatoes<br />
IMDb Movies &amp; TV<br />
Kindle<br />
Google Earth<br />
Virtuoso Piano Free 2 HD</p>
<p>================================<br />
Overall Top 10 GROSSING iPad Apps<br />
================================</p>
<p>Pages<br />
Numbers<br />
Keynote<br />
LogMeIn Ignition<br />
SCRABBLE for iPad<br />
Documents To Go® Premium – Office Suite<br />
Angry Birds HD<br />
Real Racing HD<br />
Plants vs. Zombies HD<br />
Proloquo2Go</p>
<p>================================</p>
<p><strong>And the Winners are&#8230;</strong></p>
<p>Hipstamtic [<a href="http://itunes.apple.com/us/app/hipstamatic/id342115564?mt=8" target="_blank">iTunes Link</a>]</p>
<p>Plants Vs. Zombies [<a href="http://itunes.apple.com/us/app/plants-vs-zombies/id350642635?mt=8" target="_blank">iTunes Link</a>]</p>
<p>Flipboard [<a href="http://itunes.apple.com/us/app/flipboard/id358801284?mt=8" target="_blank">iTunes Link</a>]</p>
<p>Osmos [<a href="http://itunes.apple.com/us/app/osmos-for-ipad/id379323382?mt=8" target="_blank">iTunes Link</a>]</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/top-iphone-and-ipad-apps-of-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Make An App &#8211; EDUmobile iPhone Course</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/how-to-make-an-app-edumobile-iphone-course/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/how-to-make-an-app-edumobile-iphone-course/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 09:15:14 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[how to make an app]]></category>
		<category><![CDATA[how to make an app for ipod touch]]></category>
		<category><![CDATA[how to make an apple app]]></category>
		<category><![CDATA[how to make iphone app sdk]]></category>
		<category><![CDATA[how to make iphone app tutorial]]></category>
		<category><![CDATA[how to make iphone application]]></category>
		<category><![CDATA[how to make iphone applicaton]]></category>
		<category><![CDATA[how to make iphone apps]]></category>
		<category><![CDATA[how to make iphone web page]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2599</guid>
		<description><![CDATA[Here's a bit about our flagship iPhone development training program that teaches candidates how to make an app in 10 weeks flat. If you're considering learning this from ground up and becoming a expert coder - do consider this course.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a bit about our flagship iPhone development training program that teaches candidates <strong>how to make an app</strong> in 10 weeks flat. If you&#8217;re considering learning this from ground up and becoming a expert coder &#8211; do consider this course.</p>
<p><strong>EDUmobile.ORG</strong> is a premier online distance learning institution imparting mobile training for software developers teaching them how to make iphone apps and other mobile wireless technologies. EDUmobile develops and provides training programs in line with wireless technology market trends.</p>
<p>The advent of the iPhone and its demand among consumers has created a dire need for skilled manpower who know how to make iPhone apps. EDUmobile’s iphone programming course is developed to fulfill the demand of a training system that meets industry and certification standards.</p>
<p>EDUmobile.ORG has developed a proven iphone development training system with course content developed by course creators and instructors having experience in mobile technology industry of over 7 years. These creators and instructors have worked with top tier companies such as EA Mobile, iPlay, Oberon Media, Disney Mobile, Sony Pictures, Warner Bros, Hands-On-Mobile and Vodafone amongst others.</p>
<p>Our <strong>iPhone development</strong> training program is devised to suit the needs of both students and working executives who want make a career in the new avenue of developing iphone apps which has great potential. No other iPhone Training Program or Off-the-shelf Book can match Edumobile methodology, highly organized course material, online training videos, weekly worksheets, access to live projects and the level of one-on-one support that is available throughout the term of the course. This training program will enable the students to do the following:</p>
<ul>
<li>Gain expertise on iphone development in easy and phased training system.</li>
<li>Sequential learning process via video tutorials, pdfs and worksheets.</li>
<li>Get direct instructions and live one-on-one support from tutors.</li>
<li>Get benefit of weekly exercises that would be reviewed and graded .</li>
<li>Keep a track of your progress on regular basis.</li>
<li>Benefit of learning from comforts of home and at a convenient time.</li>
<li>Remote access to Mac if required.</li>
<li>Live commercial project as a part of curriculum for final project delivery.</li>
<li>Get certification for full duration of the course.</li>
<li>Ipad development module as bonus.</li>
</ul>
<p>Some of the career options available after completion of the course can be that one can independently publish their own apps, work as a freelancer winning project from client from project bidding sites such as Elance or odesk – where there are several projects from clients on how to make iphone applications.  One can also get higher pay having enhanced their technical skill sets. The iPhone course is iphone OS 4 compliant and it is always updated to incorporate latest releases so developers stay up to date with latest iphone app making techniques.</p>
<p>The course training methodology is interactive as well as comprehensive. It is based on concept problem mechanism which provides systematic approach to all candidates. EDUmobile has the advantage of experienced developers and tutors who have created and fine tuned the course content based on proven system which works real time and has industry acceptance. Step by step, fun and easy to learn methodology with availability of tutors both by live chat and email support throughout the course makes the learning experience intuitive.</p>
<p>Direct tutor support is available whenever a candidate stuck or has trouble comprehending the code or simply need routine guidance. This support is without any extra charges throughout the training on how to make an app iphone course. <strong>How to make iphone app tutorials</strong> are sent weekly to candidates over a 12 week period at the end of which an exam is taken and a certificate is given.</p>
<p>Read about the full course that teaches you <strong><a href="http://www.edumobile.org/iphone-course.html" target="_self">how to make an app</a></strong>.</p>
<p>[ Interested in Android app development? Click here to learn <a href="http://www.edumobile.org/android-course.html">how to make an android app</a> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/how-to-make-an-app-edumobile-iphone-course/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Case Study &#8211; Building an iPhone App, from Start To Finish</title>
		<link>http://www.edumobile.org/iphone/iphone-apps/case-study-building-an-iphone-app-from-start-to-finish/</link>
		<comments>http://www.edumobile.org/iphone/iphone-apps/case-study-building-an-iphone-app-from-start-to-finish/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 07:50:49 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[iPhone Programming Tutorials]]></category>
		<category><![CDATA[building an app]]></category>
		<category><![CDATA[case study iphone app]]></category>
		<category><![CDATA[photokast]]></category>

		<guid isPermaLink="false">http://edumobile.org/iphone/?p=1457</guid>
		<description><![CDATA[This is a gold nugget that every new iPhone developer must download have a look at. Its basically a 37 page guide that the developers of an App called Photokast have written that details the development process, decisions and what they learned during the creation of their app.]]></description>
			<content:encoded><![CDATA[<p>This is a gold nugget that every iPhone developer must download and read. Its a 37 page guide that the developers of an App called Photokast have written that details the development process, decisions and what they learned during the creation of their app. Their hope is that the document might provide insights for other developers when they start out on iPhone App development projects.</p>
<p>Photokast’s creators are unique in that they spent time to help others faced with the same task. The app itself is fun, too: it serves up photos from your area, asks you to rate them and spreads the most popular pics to more users.</p>
<p>There&#8217;s 37 pages of invaluable content below for all iPhone developers. Download, read and save this one for sure.</p>
<p><a style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;" title="View Building PhotoKast: Creating an iPhone app in one month on Scribd" href="http://www.scribd.com/doc/12684298/Building-PhotoKast-Creating-an-iPhone-app-in-one-month">Building PhotoKast: Creating an iPhone app in one month</a> <object id="doc_117987513873524" style="outline: none;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="doc_117987513873524" /><param name="data" value="http://d1.scribdassets.com/ScribdViewer.swf" /><param name="wmode" value="opaque" /><param name="bgcolor" value="#ffffff" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="FlashVars" value="document_id=12684298&amp;access_key=key-c0uc3wjw8uao8poe0k4&amp;page=1&amp;viewMode=list" /><param name="src" value="http://d1.scribdassets.com/ScribdViewer.swf" /><param name="allowfullscreen" value="true" /><embed id="doc_117987513873524" style="outline: none;" type="application/x-shockwave-flash" width="600" height="500" src="http://d1.scribdassets.com/ScribdViewer.swf" flashvars="document_id=12684298&amp;access_key=key-c0uc3wjw8uao8poe0k4&amp;page=1&amp;viewMode=list" allowscriptaccess="always" allowfullscreen="true" bgcolor="#ffffff" wmode="opaque" data="http://d1.scribdassets.com/ScribdViewer.swf" name="doc_117987513873524"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-apps/case-study-building-an-iphone-app-from-start-to-finish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

