<?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 Tutorials &#38; iPhone Development</title>
	<atom:link href="http://www.edumobile.org/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edumobile.org/iphone</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 09:15:14 +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>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>iPhone Development on Windows OS ?</title>
		<link>http://www.edumobile.org/iphone/iphone-beginner-tutorials/iphone-development-on-windows-os/</link>
		<comments>http://www.edumobile.org/iphone/iphone-beginner-tutorials/iphone-development-on-windows-os/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 09:26:48 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[Beginner Tutorials]]></category>
		<category><![CDATA[iphone development windows]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[iphone windows]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2590</guid>
		<description><![CDATA[Every now and then I get mails from people asking if its possible for them to start programming for the iPhone OS on a Windows machine. My first reply is that if they are serious about this - they should just go out and buy the cheapest Mac there is out there for less than $300. But then, this may be too expensive if you just want to dabble in the environment and see if this is something you want to pursue further. Here are some alternatives... ]]></description>
			<content:encoded><![CDATA[<p>Every now and then I get mails from people asking if its possible for them to start programming for the iPhone OS on a Windows machine. My first reply is that if they are serious about this &#8211; they should just go out and buy the cheapest Mac there is out there for less than $600.</p>
<p>But then, this may be too expensive if you just want to dabble in the environment and see if this is something you want to pursue further. EDUmobile offers a remote mac access facility, which allows you to login to a real Mac using a normal web browser. This can get you started.</p>
<p>Apple is probably never going to release a development environment  / SDK that works on a Windows machine &#8211; so don&#8217;t expect a miracle to happen. <img src='http://www.edumobile.org/iphone/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There are however some illegal ways that you can create a Virtual Mac OS environment on a regular Windows machine and there is the famous &#8220;hackintosh&#8221; solution &#8211; but it is going to probably cost you a lot of productivity time as Apple frequently updates their SDK requiring you to spend time to re-setup things over and over again. I won&#8217;t tell you the details and I don&#8217;t really encourage this, but it is possible if you are very short changed and if you are desperate. Do note that you will need to eventually buy a Mac when you get to the point of wanting to publish your game as you need a valid machine hardware footprint for that. This is just a stop gap option for you.</p>
<p>So, the truth is that there is no <strong>real </strong>iPhone SDK that runs on Windows environment &#8211; despite what many software vendors may tell you. However &#8211; there are some ways for you to develop your iPhone app in Windows.</p>
<p>You can get a bit clever in developing on these environments and then when you are ready to compile you can access a remote Mac like that offered by EDUmobile.</p>
<p>Here are two iPhone development game engines (both offer free trials). Both of them can compile into code that is native to the iPhone. Many apps available in the iPhone App Store have been created with them.</p>
<ul>
<li> <strong><a href="http://unity3d.com/" target="_blank">Unity3D</a></strong> &#8211; This game development engine and editor utilizes Boo and C#. The editor works on both Windows and Mac.</li>
</ul>
<ul>
<li><strong><a href="http://stonetrip.com/" target="_blank">Stonetrip S3D</a></strong> &#8211; This game development engine and editor utilizes LUA. The editor can run inside Windows.</li>
</ul>
<p>The following next two solutions allow you to create apps using web technologies like  HTML, CSS and Javascript. You can then run them through an Objective-C framework that responds to actions within a UIWebView. This allows you to access native functionality on the iPhone.  Both there frameworks are free.</p>
<ul>
<li><strong><a href="http://www.appcelerator.com/" target="_blank">Appcelerator Titanium</a></strong> &#8211; This is the most complete of the development platforms that are currently available, not counting the two game engines above. Extensive support is provided.</li>
</ul>
<ul>
<li><strong><a href="http://www.genuitec.com/mobile/" target="_blank">Genuitec MobiOne</a></strong> &#8211; This tool is basically an interface designer. It uses the Phonegap framework to deliver native functionality and it runs only on windows.</li>
</ul>
<p>There are two other other solutions that are in testing and may require upfront payment without any form of trial. They are:</p>
<ul>
<li><strong><a href="http://labs.adobe.com/technologies/flashcs5/" target="_blank">Flash CS5</a></strong> &#8211; They say you can altogether bypass the Mac with this.</li>
</ul>
<ul>
<li><strong><a href="http://www.dragonfiresdk.com/index.htm" target="_blank">Dragonfire SDK</a></strong> &#8211; Visit the site to sign up for Beta version.</li>
</ul>
<p><strong><span style="text-decoration: underline;">UPDATE:</span> </strong></p>
<p>A new entry to this list is <strong><a href="http://www.genuitec.com/mobile/" target="_blank">MobiOne</a>.</strong> It has indeed come a long way since it was first released with a lot of improvements and new features have been added. It is very easy to use, and you can build your app with the built in drag-n-drop functionality, and test it quickly. It allows you to develop HTML and Javascript based apps from within their IDE. Grab it from this link &#8211; <a href="http://www.genuitec.com/mobile/" target="_blank">http://www.genuitec.com/mobile/</a> .</p>
<p><em><strong>Watch a video demo of a recent version of MobiOne below </strong>-</em></p>
<p><a href="http://www.edumobile.org/iphone/iphone-beginner-tutorials/iphone-development-on-windows-os/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-beginner-tutorials/iphone-development-on-windows-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>157 App Stats For You</title>
		<link>http://www.edumobile.org/iphone/iphone-trends-stats/157-app-stats-for-you/</link>
		<comments>http://www.edumobile.org/iphone/iphone-trends-stats/157-app-stats-for-you/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 10:27:15 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Trends & Stats]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2584</guid>
		<description><![CDATA[There's a wealth of datapoints out there on the growth of apps, and it can be overwhelming. So Mobile Entertainment has tried to help. They have compiled a presentation with 157 different stats, taking in app stores, consumer usage, analyst predictions, and app success stories. The presentation is free to view, embed and download.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a wealth of datapoints out there on the growth of apps, and it can be overwhelming. So Mobile Entertainment has tried to help. They have compiled a presentation with 157 different stats, taking in app stores, consumer usage, analyst predictions, and app success stories. The presentation, which is free to view, embed and download, is below.</p>
<p>The last few slides gets pretty intereresting as they give real numbers of some of the top performing apps.</p>
<p><img style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyODIyOTk2MTE3MTgmcHQ9MTI4MjI5OTYyNzUzMSZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm89NGNlMDM2YjFlODYy/NGRhOTg5Yzc5Y2M*ZWY3NjVhYzgmb2Y9MA==.gif" border="0" alt="" width="0" height="0" /></p>
<div id="__ss_5012860" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="157 Mobile App Stats You Should Know About" href="http://www.slideshare.net/stuartdredge/157-mobile-app-stats-you-should-know-about">157 Mobile App Stats You Should Know About</a></strong><object id="__sse5012860" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=apps-research-2-100819110824-phpapp02&amp;stripped_title=157-mobile-app-stats-you-should-know-about" /><param name="name" value="__sse5012860" /><param name="allowfullscreen" value="true" /><embed id="__sse5012860" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=apps-research-2-100819110824-phpapp02&amp;stripped_title=157-mobile-app-stats-you-should-know-about" name="__sse5012860" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/stuartdredge">stuartdredge</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-trends-stats/157-app-stats-for-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Guys. No Development Experience. Some Great App Insights.</title>
		<link>http://www.edumobile.org/iphone/iphone-business/two-guys-no-development-experience-some-great-app-insights/</link>
		<comments>http://www.edumobile.org/iphone/iphone-business/two-guys-no-development-experience-some-great-app-insights/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 11:18:17 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Business]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2575</guid>
		<description><![CDATA[Here's the blog of two guys who have jumped onto the iPhone Apps bandwagon. Whats interesting is that they have absolutely no experience in development. They outsource most of their work. The fantastic part (that you can learn a lot from) is that they are documenting their entire experience online.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the blog of two guys who have jumped onto the iPhone Apps bandwagon. Whats interesting is that they have absolutely no experience in development. They outsource most of their work.</p>
<p>The fantastic part (that you can learn a lot from) is that they are documenting their entire experience online &#8211; how they came up with the app idea, creation of the app, publishing it, marketing it, tracking sales and revenues generated, making a lite version etc.</p>
<p>You get to see everything from start to finish about each app they release. They give you some great insights and revenue figures for the apps they publish. This is one blog you want to visit &#8211; if you have never published an app before and want to get some very good tips and insights on what to expect.</p>
<p>Currently, they&#8217;re averaging around $2000 per month with the apps they have released (around 3 to 4 only, from what I can see). Which is pretty impressive and very encouraging for all indie developers!</p>
<p>Here&#8217;s a note from their homepage -</p>
<blockquote><p>Our names are Pat Flynn and Quoc Bui. We’ve been friends since middle school and have recently decided to put our creative heads together in the iPhone application world. The catch is, we are not developers. We really have no experience with working on iPhone applications whatsoever.</p>
<p>Think of the work we do as an experiment. We outsource all of the work for our application ideas and we submit them to the iTunes Store, just to see what happens.</p>
<p>We’ll be documenting our progress, our marketing campaigns, and our income (if any).We’re hoping to be successful, and show you that anyone, even those who are not familiar with iPhone app development (like us), can succeed if you put in the time, effort and a little bit of money.</p></blockquote>
<p><a href="http://www.lolerapps.com/" target="_blank"><strong>Visit Pat and Quoc on their blog at Loler Apps!</strong></a> There&#8217;s tons of stuff you can learn from them &#8211; that many companies and indie developers won&#8217;t tell you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-business/two-guys-no-development-experience-some-great-app-insights/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Double Component Picker in iPad</title>
		<link>http://www.edumobile.org/iphone/ipad-development/double-component-picker-in-ipad/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/double-component-picker-in-ipad/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 07:12:23 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[Double Component Picker]]></category>
		<category><![CDATA[Double Component picker in iPad]]></category>
		<category><![CDATA[iPad tutorials]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2560</guid>
		<description><![CDATA[This is the Double Component Picker example. In this example we will see how to worked it in the iPad.]]></description>
			<content:encoded><![CDATA[<p>This is the Double Component Picker example. In this example we will see how to worked it in the iPad.</p>
<p><strong>Step 1:</strong> Create a View base application using template. Give the application name  ”DoubleComponentPicker_ipad”.</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.</p>
<p><strong>Step 3 : </strong>Expand classes and notice Interface Builder created the DoubleComponentPicker_ipad class for you. Expand Resources and notice the template generated a separate nib, DoubleComponentPicker_ipadViewController.xib, for the “DoubleComponentPicker_ipad”.</p>
<p><strong>Step 4 :</strong> In the DoubleComponentPicker_ipadViewController.h file , we have added DataSource and delegate protocol. Create an instance of UIPickerView class and add one IBAction method. So 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">#define kFillingComponent &nbsp;0</span><br />
<span class="co1">#define kBreadComponent &nbsp;1</span></p>
<p><span class="kw1">@interface</span> DoubleComponentPicker_ipadViewController <span class="sy0">:</span> UIViewController &lt;UIPickerViewDelegate, UIPickerViewDataSource&gt;<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; IBOutlet UIPickerView <span class="sy0">*</span>doublePicker;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>fillingTypes;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>breadTypes;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic,retain<span class="br0">&#41;</span> &nbsp;UIPickerView <span class="sy0">*</span>doublePicker;<br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic,retain<span class="br0">&#41;</span> &nbsp;<a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>fillingTypes;<br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic,retain<span class="br0">&#41;</span> &nbsp;<a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>breadTypes;</p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed;</div>
</div>
<p><strong>Step 5: </strong>Double click the DoubleComponentPicker_ipadViewController.xib file and open it to the Interface Builder. First drag the Picker view from the library and place it to the view window and drag round rect button from the library and place it to the view window. Select the picker from the view window and bring up connection inspector and drag from the datasource to the file’s owner icon, do the same thing for delegate protocol. Select the round rect button and bring up Connection Inspector and drag from the Touch Up Inside to the File’s Owner icon and select buttonPressed: action. Now save the DoubleComponentPicker_ipadViewController.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 6: </strong>Open the DoubleComponentPicker_ipadViewController.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; NSInteger breadRow <span class="sy0">=</span> <span class="br0">&#91;</span>doublePicker selectedRowInComponent<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kBreadComponent<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; NSInteger fillingRow <span class="sy0">=</span> <span class="br0">&#91;</span>doublePicker selectedRowInComponent<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kFillingComponent<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>bread <span class="sy0">=</span> <span class="br0">&#91;</span>breadTypes objectAtIndex<span class="sy0">:</span>breadRow<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>filling <span class="sy0">=</span> <span class="br0">&#91;</span>fillingTypes objectAtIndex<span class="sy0">:</span>fillingRow<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>message <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> alloc<span class="br0">&#93;</span> initWithFormat<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co3">@</span><span class="st0">&quot;Your %@ on %@ bread will be right up.&quot;</span>,filling, bread<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; 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;Thank you for your order&quot;</span> message<span class="sy0">:</span>message delegate<span class="sy0">:</span><span class="kw2">nil</span> cancelButtonTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Great!&quot;</span> otherButtonTitles<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>alert show<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>alert release<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>message release<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p>
<span class="co2">// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>breadArray <span class="sy0">=</span> <span class="br0">&#91;</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> alloc<span class="br0">&#93;</span> initWithObjects<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co3">@</span><span class="st0">&quot;White&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Whole Wheat&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Rye&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Sourdough&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Seven Grain&quot;</span>, <span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; self.breadTypes <span class="sy0">=</span> breadArray;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>breadArray release<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>fillingArray <span class="sy0">=</span> <span class="br0">&#91;</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> alloc<span class="br0">&#93;</span> initWithObjects<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co3">@</span><span class="st0">&quot;Turkey&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Peanut Butter&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Tuna Salad&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Chicken Salad&quot;</span>,<span class="co3">@</span><span class="st0">&quot;Roast Beef&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co3">@</span><span class="st0">&quot;Vegemite&quot;</span>,<span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; self.fillingTypes <span class="sy0">=</span> fillingArray;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>fillingArray release<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>super viewDidLoad<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>numberOfComponentsInPickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="nu0">2</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>pickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
numberOfRowsInComponent<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>component<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>component <span class="sy0">==</span> kBreadComponent<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span><span class="br0">&#91;</span>self.breadTypes count<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span><span class="br0">&#91;</span>self.fillingTypes count<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; titleForRow<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;forComponent<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>component <br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>component <span class="sy0">==</span> kBreadComponent<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>self. breadTypes objectAtIndex<span class="sy0">:</span>row<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>self.fillingTypes objectAtIndex<span class="sy0">:</span>row<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 7</strong>: Its all done, now compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-11.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-11-238x300.jpg" alt="" title="1-(1)" width="238" height="300" class="alignnone size-medium wp-image-2561" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href='http://www.edumobile.org/iphone/wp-content/uploads/2010/08/DoubleComponentPicker_ipad.zip'>DoubleComponentPicker_ipad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/double-component-picker-in-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SingleComponent Picker in iPad</title>
		<link>http://www.edumobile.org/iphone/ipad-development/singlecomponent-picker-in-ipad/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/singlecomponent-picker-in-ipad/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 07:16:13 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[iPad tutorials]]></category>
		<category><![CDATA[Single Component Picker]]></category>
		<category><![CDATA[SingleComponent Picker in iPad]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2550</guid>
		<description><![CDATA[This is the Single Component Picker application. In this application we will see how to add Single Component in iPad.]]></description>
			<content:encoded><![CDATA[<p>This is the Single Component Picker application. In this application we will see how to add Single Component in iPad.</p>
<p><strong>Step 1:</strong> Create a View base application using template. Give the application name  &#8221;SingleComponent_iPad&#8221;.</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.</p>
<p><strong>Step 3:</strong> Expand classes and notice Interface Builder created the SingleComponent_iPadViewController class for you. Expand Resources and notice the template generated a separate nib, SingleComponent_iPadViewController.xib, for the “SingleComponent_iPad”.</p>
<p><strong>Step 4:</strong> In the SingleComponent_iPadViewController.h file , we have added DataSource and delegate protocol. Create an instance of UIPickerView class and add one IBAction method. So 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></p>
<p><span class="kw1">@interface</span> SingleComponent_iPadViewController <span class="sy0">:</span> UIViewController<br />
&lt;UIPickerViewDataSource , UIPickerViewDelegate&gt;<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; IBOutlet UIPickerView <span class="sy0">*</span>singlePickerComponent;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>pickerData;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">@property</span><span class="br0">&#40;</span>nonatomic , retain<span class="br0">&#41;</span> UIPickerView <span class="sy0">*</span>singlePickerComponent;<br />
<span class="kw1">@property</span><span class="br0">&#40;</span>nonatomic , retain<span class="br0">&#41;</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>pickerData;</p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed;</div>
</div>
<p><strong>Step 5:</strong> Double click the SingleComponent_iPadViewController.xib file, open it to the Interface Builder. First drag the Picker view from the library and place it to the view window and drag round rect button from the library and place it to the view window. Select the picker from the view window and bring up connection inspector and drag from the datasource to the file&#8217;s owner icon, do the same thing for delegate protocol. Select the round rect button and bring up Connection Inspector and drag from the Touch Up Inside to the File&#8217;s Owner icon and select buttonPressed: action. Now save the SingleComponent_iPadViewController.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 6: </strong>Open the SingleComponent_iPadViewController.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; NSInteger row <span class="sy0">=</span> <span class="br0">&#91;</span>singlePickerComponent selectedRowInComponent<span class="sy0">:</span>0<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>selected <span class="sy0">=</span> <span class="br0">&#91;</span>pickerData objectAtIndex<span class="sy0">:</span>row<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>title <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> alloc<span class="br0">&#93;</span> initWithFormat<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="co3">@</span><span class="st0">&quot;you selected %@!&quot;</span>, selected<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; 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>title<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message <span class="sy0">:</span> <span class="co3">@</span><span class="st0">&quot;Thank you for choosing.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delegate<span class="sy0">:</span><span class="kw2">nil</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cancelButtonTitle <span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;You are Welcome&quot;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;otherButtonTitles <span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>alert show<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>alert release<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>title release<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="co2">// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.</span><br />
<span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/"><span class="kw5">NSArray</span></a> <span class="sy0">*</span>array <span class="sy0">=</span> <span class="br0">&#91;</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> alloc<span class="br0">&#93;</span> initWithObjects<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;SunDay&quot;</span>,<span class="co3">@</span><span class="st0">&quot;MonDay&quot;</span>,<span class="co3">@</span><span class="st0">&quot;TuesDay&quot;</span>,<span class="co3">@</span><span class="st0">&quot;WednesDay&quot;</span>,<span class="co3">@</span><span class="st0">&quot;ThusDay&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co3">@</span><span class="st0">&quot;FriDay&quot;</span>,<span class="co3">@</span><span class="st0">&quot;SaturDay&quot;</span>,<span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; self.pickerData <span class="sy0">=</span> array;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>array release<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; <span class="br0">&#91;</span>super viewDidLoad<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>numberOfComponentsInPickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="nu0">1</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>pickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
numberOfRowsInComponent<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>component<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">&#91;</span>pickerData count<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<span class="sy0">:</span><span class="br0">&#40;</span>UIPickerView <span class="sy0">*</span><span class="br0">&#41;</span>pickerView<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; titleForRow<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>row<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;forComponent<span class="sy0">:</span><span class="br0">&#40;</span>NSInteger<span class="br0">&#41;</span>component <br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span><span class="br0">&#91;</span>pickerData objectAtIndex<span class="sy0">:</span>row<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 7: </strong>Now Compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-1.jpg"><img class="alignnone size-medium wp-image-2551" title="1-(1)" src="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-1-238x300.jpg" alt="" width="238" height="300" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/SingleComponent_iPad.zip">SingleComponent_iPad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/singlecomponent-picker-in-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Splash Screen in iPad</title>
		<link>http://www.edumobile.org/iphone/ipad-development/display-splash-screen-in-ipad/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/display-splash-screen-in-ipad/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 07:33:44 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[Display Splash Screen]]></category>
		<category><![CDATA[Display Splash Screen in iPad]]></category>
		<category><![CDATA[iPad tutorials]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2543</guid>
		<description><![CDATA[In this application we will see how to display Splash Screen in iPad.]]></description>
			<content:encoded><![CDATA[<p>In this application we will see how to display Splash Screen in iPad.</p>
<p><strong>Step 1: </strong>Create a View base application using template. Give the application name “DisplaySplash_iPad”.</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.</p>
<p><strong>Step 3:</strong> Expand classes and notice Interface Builder created the DisplaySplash_iPadViewController class for you. Expand Resources and notice the template generated a separate nib, DisplaySplash_iPadViewController.xib, for the “DisplaySplash_iPad”.</p>
<p><strong>Step 4: </strong>We need to add one resource in the resource folder for display splash.</p>
<p><strong>Step 5: </strong>In the DisplaySplash_iPad.h file, we have created instance of UIView class and two methods. So make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span></p>
<p><span class="kw1">@interface</span> DisplaySplash_iPadViewController <span class="sy0">:</span> UIViewController <span class="br0">&#123;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; IBOutlet UIView <span class="sy0">*</span>displaySplashScreen;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>displayScreen;<br />
<span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>removeScreen;</div>
</div>
<p><strong>Step 6: </strong>Double click the DisplaySplash_iPadViewController.xib file and open it to the Interface Builder. Drag the view from the library and place it to the Main Window. Open the second view icon from the MainWindow,drag the image view from the library and place it to the view window,select the view and bring up Attribute Inspector select the image “themes.png”. Select the File’s Owner icon from the MainWindow and bring up Connection Inspector, drag from the displayScreen to the last view icon and connect File’s Owner icon to the view. Now save it , close it and go back to the Xcode.</p>
<p><strong>Step 7: </strong>Open the DisplaySplash_iPad.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>displayScreen<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; UIViewController <span class="sy0">*</span>displayViewController<span class="sy0">=</span><span class="br0">&#91;</span><span class="br0">&#91;</span>UIViewController alloc<span class="br0">&#93;</span> init<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; displayViewController.view <span class="sy0">=</span> displaySplashScreen;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>self presentModalViewController<span class="sy0">:</span>displayViewController animated<span class="sy0">:</span><span class="kw2">NO</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; <span class="br0">&#91;</span>self performSelector<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>removeScreen<span class="br0">&#41;</span> withObject<span class="sy0">:</span><span class="kw2">nil</span> afterDelay<span class="sy0">:</span>6.0<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>removeScreen<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span><span class="br0">&#91;</span>self modalViewController<span class="br0">&#93;</span> dismissModalViewControllerAnimated<span class="sy0">:</span><span class="kw2">YES</span><span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 8 :</strong> Now compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-71.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-71-232x300.jpg" alt="" title="1-7" width="232" height="300" class="alignnone size-medium wp-image-2547" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href='http://www.edumobile.org/iphone/wp-content/uploads/2010/08/DisplaySplash_iPad.zip'>DisplaySplash_iPad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/display-splash-screen-in-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make $400 to $5000 DAILY from Ad Revenues With Your Free App</title>
		<link>http://www.edumobile.org/iphone/iphone-trends-stats/make-400-to-5000-daily-from-ad-revenues-with-your-free-app/</link>
		<comments>http://www.edumobile.org/iphone/iphone-trends-stats/make-400-to-5000-daily-from-ad-revenues-with-your-free-app/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 09:37:01 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Trends & Stats]]></category>
		<category><![CDATA[app money]]></category>
		<category><![CDATA[in apps advertising]]></category>
		<category><![CDATA[iphone apps money]]></category>
		<category><![CDATA[mobile ads]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2538</guid>
		<description><![CDATA[The iPhone Apps get-rich-quick landscape is best suited for one of two people development shops. However, some companies are also making good revenues - specifically from in-app advertising. In the report below, AdWhirl says that top apps can make $400 to $5,000 per day on ads.]]></description>
			<content:encoded><![CDATA[<p>The iPhone Apps get-rich-quick landscape is best suited for one of two people development shops. However, some companies are also making good revenues &#8211; specifically from in-app advertising.</p>
<p>In the report below, AdWhirl says that top apps can make $400 to $5,000 per day on ads. The average CPM works out to around $2 per 1000 impressions. It may not look  impressive but its substantially better than the CPM rates at Facebook or MySpace apps.</p>
<p>However &#8211; These apps are from the most popular section on the app store&#8230; listing within the top 100 free apps. This is what is causing a problem for small developers. You need to crack into the top 100 if you want to get to the $400 daily revenue target.<br />
<BR><BR><br />
<a title="View Adwhirl iPhone Advertising Snapshot on Scribd" href="http://www.scribd.com/doc/15007502/Adwhirl-iPhone-Advertising-Snapshot" 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;">Adwhirl iPhone Advertising Snapshot</a> <object id="doc_567029969742355" name="doc_567029969742355" height="500" width="100%" type="application/x-shockwave-flash" data="http://d1.scribdassets.com/ScribdViewer.swf" style="outline:none;" rel="media:document" resource="http://d1.scribdassets.com/ScribdViewer.swf?document_id=15007502&#038;access_key=key-3s48cgm63pjdcqkkcsn&#038;page=1&#038;viewMode=list" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:dc="http://purl.org/dc/terms/" ><param name="movie" 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=15007502&#038;access_key=key-3s48cgm63pjdcqkkcsn&#038;page=1&#038;viewMode=list"><embed id="doc_567029969742355" name="doc_567029969742355" src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=15007502&#038;access_key=key-3s48cgm63pjdcqkkcsn&#038;page=1&#038;viewMode=list" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="500" width="100%" wmode="opaque" bgcolor="#ffffff"></embed></object><br />
<BR><BR><br />
You can access the <a href="http://www.scribd.com/doc/15007502/Adwhirl-iPhone-Advertising-Snapshot" target="_blank">Adwhirl data report directly here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-trends-stats/make-400-to-5000-daily-from-ad-revenues-with-your-free-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change View in iPad</title>
		<link>http://www.edumobile.org/iphone/ipad-development/change-view-in-ipad/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/change-view-in-ipad/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 06:39:41 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[Change View]]></category>
		<category><![CDATA[Change View in iPad]]></category>
		<category><![CDATA[iPad tutorials]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2530</guid>
		<description><![CDATA[In this application we will see how to change view in iPad.]]></description>
			<content:encoded><![CDATA[<p>In this application we will see how to change view in iPad.</p>
<p><strong>Step 1:</strong> Create a Window base application using template. Give the application name “Windowbase_iPad”.</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.</p>
<p><strong>Step 3: </strong>xpand classes and notice Interface Builder created the Windowbase_iPadAppDelegate class for you. Expand Resources and notice the template generated a separate nib, MainWindow.xib, for the “Windowbase_iPad”.</p>
<p><strong>Step 4:</strong> We need to add two images in the resource folder. Give the name of the resources &#8220;1-1.png&#8221;,&#8221;2-1.png&#8221;.</p>
<p><strong>Step 5:</strong> We have added QuartzCore.framework, select Frameworks -&gt; add -&gt; Existing frameworks -&gt; selectQuartzCore.framework.</p>
<p><strong>Step 6: </strong>In the Windowbase_iPadAppDelegate.h file, we have added instances of UIView and UIImageView class, and create one IBAction method. So make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span></p>
<p><span class="kw1">@interface</span> Windowbase_iPadAppDelegate <span class="sy0">:</span> <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/"><span class="kw5">NSObject</span></a> &lt;UIApplicationDelegate&gt; <span class="br0">&#123;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIWindow <span class="sy0">*</span>window;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIView &nbsp;<span class="sy0">*</span>subView;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIImageView <span class="sy0">*</span>view1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIImageView <span class="sy0">*</span>view2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">BOOL</span> change;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet UIWindow <span class="sy0">*</span>window;<br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet UIView &nbsp;<span class="sy0">*</span>subView;</p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>ChangeView<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span>sender;</div>
</div>
<p><strong>Step 7:</strong> Double click your MainWindow.xib file open it to the Interface Builder. Open the the window and drag view from the library and place it to the window. Next drag Toolbar from the library and place it buttom of the view window. Now select ViewChangeAppDelegate, and bring up connection inspector. Select from subView to the view, and ChangeView to the BarButtonItem. Now save your .xib file and go back to the Xcode.</p>
<p><strong>Step 8: </strong>Open the Windowbase_iPadAppDelegate.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>application<span class="sy0">:</span><span class="br0">&#40;</span>UIApplication <span class="sy0">*</span><span class="br0">&#41;</span>application didFinishLaunchingWithOptions<span class="sy0">:</span><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>launchOptions <span class="br0">&#123;</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; UIImage <span class="sy0">*</span>image1 <span class="sy0">=</span> <span class="br0">&#91;</span>UIImage imageWithContentsOfFile<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> pathForResource<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;1-1.png&quot;</span> ofType<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view1 <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIImageView alloc<span class="br0">&#93;</span> initWithImage<span class="sy0">:</span>image1<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIImage <span class="sy0">*</span>image2 <span class="sy0">=</span> <span class="br0">&#91;</span>UIImage imageWithContentsOfFile<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> pathForResource<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;2-1.png&quot;</span> ofType<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view2 <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIImageView alloc<span class="br0">&#93;</span> initWithImage<span class="sy0">:</span>image2<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view2.hidden <span class="sy0">=</span> <span class="kw2">YES</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>subView addSubview<span class="sy0">:</span>view1<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>subView addSubview<span class="sy0">:</span>view2<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; change <span class="sy0">=</span> <span class="kw2">NO</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>window makeKeyAndVisible<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">YES</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>performTransition<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; CATransition <span class="sy0">*</span>transition <span class="sy0">=</span> <span class="br0">&#91;</span>CATransition animation<span class="br0">&#93;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; transition.duration <span class="sy0">=</span> <span class="nu0">0.75</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; transition.timingFunction <span class="sy0">=</span> <span class="br0">&#91;</span>CAMediaTimingFunction functionWithName<span class="sy0">:</span>kCAMediaTimingFunctionEaseInEaseOut<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>types<span class="br0">&#91;</span>4<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span>kCATransitionMoveIn, kCATransitionPush, kCATransitionReveal, kCATransitionFade<span class="br0">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>subtypes<span class="br0">&#91;</span>4<span class="br0">&#93;</span> <span class="sy0">=</span> <span class="br0">&#123;</span>kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromBottom<span class="br0">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw4">int</span> rnd <span class="sy0">=</span> random<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">%</span> <span class="nu0">4</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; transition.type <span class="sy0">=</span> types<span class="br0">&#91;</span>rnd<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>rnd &lt; 3<span class="br0">&#41;</span> &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transition.subtype <span class="sy0">=</span> subtypes<span class="br0">&#91;</span>random<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">%</span> 4<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; change <span class="sy0">=</span> <span class="kw2">YES</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; transition.delegate <span class="sy0">=</span> self;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>subView.layer addAnimation<span class="sy0">:</span>transition forKey<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; view1.hidden <span class="sy0">=</span> <span class="kw2">YES</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view2.hidden <span class="sy0">=</span> <span class="kw2">NO</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; UIImageView <span class="sy0">*</span>tmp <span class="sy0">=</span> view2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view2 <span class="sy0">=</span> view1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; view1 <span class="sy0">=</span> tmp;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>animationDidStop<span class="sy0">:</span><span class="br0">&#40;</span>CAAnimation <span class="sy0">*</span><span class="br0">&#41;</span>theAnimation finished<span class="sy0">:</span><span class="br0">&#40;</span><span class="kw4">BOOL</span><span class="br0">&#41;</span>flag<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; change <span class="sy0">=</span> <span class="kw2">NO</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>ChangeView<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 />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span>change<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>self performTransition<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 9:</strong> Now compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-7.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/08/1-7-230x300.jpg" alt="" title="1-7" width="230" height="300" class="alignnone size-medium wp-image-2535" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href='http://www.edumobile.org/iphone/wp-content/uploads/2010/08/Windowbase_iPad.zip'>Windowbase_iPad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/change-view-in-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distimo Mobile Report &#8211; July 2010</title>
		<link>http://www.edumobile.org/iphone/iphone-trends-stats/distimo-mobile-report-july-2010/</link>
		<comments>http://www.edumobile.org/iphone/iphone-trends-stats/distimo-mobile-report-july-2010/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 10:13:57 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Trends & Stats]]></category>
		<category><![CDATA[app statistics]]></category>
		<category><![CDATA[app stats]]></category>
		<category><![CDATA[distimo report]]></category>
		<category><![CDATA[ipad stats]]></category>
		<category><![CDATA[iphone app stats]]></category>
		<category><![CDATA[mobile statistics]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2523</guid>
		<description><![CDATA[This report covers the Apple App Store for iPad and iPhone (with specific focus on in-app purchases), as well as BlackBerry App World (Worldwide), Google Android Market, Nokia Ovi Store, Palm App Catalog and Windows Marketplace for Mobile for June 2010 in the United States. The major findings are:]]></description>
			<content:encoded><![CDATA[<p>This report covers the Apple App Store for iPad and iPhone (with specific focus on in-app purchases), as well as BlackBerry App World (Worldwide), Google Android Market, Nokia Ovi Store, Palm App Catalog and Windows Marketplace for Mobile for June 2010 in the United States. The major findings are:</p>
<p>* The percentage of applications with in-app purchases is significantly higher in the Apple App Store for iPad (10%) than in the Apple App Store for iPhone (2%). The Games and Social Networking categories in both stores have the highest proportion of applications with in-app purchases available.</p>
<p>* The most successful free applications that monetized using in-app purchases this month in the Apple App Store for iPhone are MobiTV (MobiTV), ESPN 2010 FIFA World Cup (ESPN) and Tap Fish (BayView Labs).</p>
<p>* The most successful paid applications that monetized using in-app purchases this month in the Apple App Store for iPhone are Guitar Hero (Activision Publishing, Inc.), TomTom U.S.A. (TomTom International BV) and Call of Duty: World at War: Zombies II (Activision Publishing, Inc.).</p>
<p>* Mirroring the Distimo report covering May 2010, Pages and iBooks, published by Apple Inc, are again the number one paid and free applications on the Apple App Store for iPad, respectively.</p>
<p>* Three out of the ten most popular applications in the Apple App Store for iPhone were published by Electronic Arts.</p>
<p>* Quickoffice Connect Mobile Suite for iPad entered the top 10 highest ranked paid applications chart in the 6th position. It was the top grossing application in the Apple App Store for iPad after Pages by Apple Inc.</p>
<p>* Nine out of the ten most popular paid applications on the Apple App Store for iPhone are Games, however only two out of the ten most popular free applications are Games. In the Nokia Ovi Store, seven out of ten of the most popular paid applications are Games, while only three out of ten of the most popular free applications are Games.</p>
<p>You can <a href="http://distimo.createsend5.com/t/r/l/mdjhhk/tukhsutu/j" target="_blank">download the report here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-trends-stats/distimo-mobile-report-july-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Music Play in iPhoneOS4</title>
		<link>http://www.edumobile.org/iphone/iphone-programming-tutorials/music-play-in-iphoneos4/</link>
		<comments>http://www.edumobile.org/iphone/iphone-programming-tutorials/music-play-in-iphoneos4/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:27:15 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPhone Programming Tutorials]]></category>
		<category><![CDATA[iphone tutorials]]></category>
		<category><![CDATA[Music Play]]></category>
		<category><![CDATA[Music Play in iPhoneOS4]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2517</guid>
		<description><![CDATA[This is the very simple example . In this application we will see how to play music in iPhone oS4.]]></description>
			<content:encoded><![CDATA[<p>This is the very simple example . In this application we will see how to play music in iPhone oS4.</p>
<p><strong>Step 1:</strong> Create a new project in Xcode using View base application. Give the application name “MusicPlay_OS4”.</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.</p>
<p><strong>Step 3:</strong> xpand classes and notice Interface Builder created the MusicPlay_OS4ViewController class for you. Expand Resources and notice the template generated a separate nib, MusicPlay_OS4ViewController.xib, for the “MusicPlay_OS4”.</p>
<p><strong>Step 4:</strong> We need to add sound files in the Resources folder. Give the name of the sound files “music.mp3”,”sound.aif”. And also add a backgroung image.</p>
<p><strong>Step 5:</strong> We need to add also two frameworks.So select Frameworks -&gt; Add -&gt; Existing Framework -&gt; then select AVFoundation.framework and AudioToolbox.framework.</p>
<p><strong>Step 6:</strong> In the MusicPlay_OS4ViewController.h file, we have  importAVFoundation.framework and AudioToolbox.framework. Create a instance of  AVAudioPlayer and UIButton class and create two IBAction method. So make the following changes in the file.</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;AudioToolbox/AudioToolbox.h&gt;</span><br />
<span class="co1">#import &lt;AVFoundation/AVFoundation.h&gt;</span></p>
<p><span class="kw1">@interface</span> MusicPlay_OS4ViewController <span class="sy0">:</span> UIViewController <br />
&lt;AVAudioPlayerDelegate&gt;<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; SystemSoundID systemSoundID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AVAudioPlayer <span class="sy0">*</span>player;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIButton <span class="sy0">*</span>StartStopSound;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet AVAudioPlayer <span class="sy0">*</span>player;<br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet UIButton <span class="sy0">*</span>StartStopSound;</p>
<p>
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSound<span class="sy0">:</span> <span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span> sender;<br />
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSong<span class="sy0">:</span> <span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span> sender;</div>
</div>
<p><strong>Step 7:</strong> Double click the MusicPlay_OS4ViewController.xib file and open it to the Interface Builder. First drag the Image View from the library and place it to the View window. Select the image view and bring up Attribute Inspector, select the background image. Drag two Round Rect button from the library and place it to the view window.Give the name of the button &#8220;Play Sound &#8220;and &#8220;Play Song&#8221; Connect File&#8217;s Owner icon to the View icon and select View. Drag File&#8217;s Owner icon to the Play Song button and select StartStopSound. Select the Play Sound button and bring up Connection Inspector and drag from the Touch Up Inside to the File&#8217;s Owner icon, select playSound: action. Do the same thing with PlaySong button and select the playSong: action. Now save the MusicPlay_OS4ViewController.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 8: </strong>Open the MusicPlay_OS4ViewController.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;InView did load&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AudioServicesCreateSystemSoundID<span class="br0">&#40;</span><span class="br0">&#40;</span>CFURLRef<span class="br0">&#41;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> fileURLWithPath<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pathForResource<span class="sy0">:</span> <span class="co3">@</span><span class="st0">&quot;sound&quot;</span> ofType<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;aif&quot;</span><span class="br0">&#93;</span><span class="br0">&#93;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sy0">&amp;</span>systemSoundID<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; player <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>AVAudioPlayer alloc<span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; initWithContentsOfURL<span class="sy0">:</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> fileURLWithPath<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> pathForResource<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;music&quot;</span> ofType<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;mp3&quot;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player prepareToPlay<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p>
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSound<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 />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;In Sample&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AudioServicesPlaySystemSound<span class="br0">&#40;</span>systemSoundID<span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSong<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 />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> stringWithFormat<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;%@&quot;</span>, <span class="br0">&#91;</span>StartStopSound titleForState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span><span class="br0">&#93;</span> isEqualToString<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Play Song&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player play<span class="br0">&#93;</span>;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>StartStopSound setTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Stop Song&quot;</span> forState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span>; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span> <span class="br0">&#123;</span>&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player stop<span class="br0">&#93;</span>;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>StartStopSound setTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Play Song&quot;</span> forState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span>; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 9:</strong> Now compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-76.jpg"><img class="alignnone size-medium wp-image-2518" title="1-7" src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-76-160x300.jpg" alt="" width="160" height="300" /></a></p>
<p>You can <strong>Download Source</strong> Code from here <a href='http://www.edumobile.org/iphone/wp-content/uploads/2010/07/MusicPlay_OS4.zip'>MusicPlay_OS4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-programming-tutorials/music-play-in-iphoneos4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CNBC Feature &#8211; Planet of the Apps</title>
		<link>http://www.edumobile.org/iphone/iphone-business/cnbc-feature-planet-of-the-apps/</link>
		<comments>http://www.edumobile.org/iphone/iphone-business/cnbc-feature-planet-of-the-apps/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 10:26:39 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Business]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2512</guid>
		<description><![CDATA[Planet of the Apps: A Hand-held Revolution Premiered on January 7th 10pm ET on CNBC. In this program CNBC looked at at how apps have changed our lives, and they meet some of the creators behind them, and figure out just how big a business they really are. For those who missed the CNBC special, you can catch up here.]]></description>
			<content:encoded><![CDATA[<p>Planet of the Apps: A Hand-held Revolution Premiered on January 7th 10pm ET on CNBC. In this program CNBC looked at at how apps have changed our lives, and they meet some of the creators behind them, and figure out just how big a business they really are. For those who missed the CNBC special feature on iPhone Apps, this is 45 minute show is a must see / download. Just search on Youtube for related clippings or if you know where on torrents you can probably download the full episode from &#8211; if in USA from Hulu, picrap.com, clicker.com or any TV show streaming site. For more information. Please log onto: <a href="http://www.planetoftheapps.cnbc.com/" target="_blank">www.planetoftheapps.cnbc.com</a></p>
<p><a href="http://www.edumobile.org/iphone/iphone-business/cnbc-feature-planet-of-the-apps/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-business/cnbc-feature-planet-of-the-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail Send from iPad</title>
		<link>http://www.edumobile.org/iphone/ipad-development/mail-send-from-ipad/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/mail-send-from-ipad/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 07:07:45 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[iPad tutorials]]></category>
		<category><![CDATA[Mail Send]]></category>
		<category><![CDATA[Mail Send from iPad]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2504</guid>
		<description><![CDATA[This is the very simple application. In this application we will see how to mail send from the iPad.]]></description>
			<content:encoded><![CDATA[<p>This is the very simple application. In this application we will see how to mail send from the iPad.</p>
<p><strong>Step 1:</strong> Create a View base application using template. Give the application name “MailComposer”.</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.</p>
<p><strong>Step 3:</strong> Expand classes and notice Interface Builder created the MailComposerViewController class for you. Expand Resources and notice the template generated a separate nib, MailComposerViewController.xib, for the “MailComposer”.</p>
<p><strong>Step 4:</strong> We need to add MessageUI Framework. Select Frameworks folder -&gt;Add -&gt; Existing Framework -&gt; Add MessageUI Framework.</p>
<p><strong>Step 5: </strong>In the MailComposerViewController.h file , we have import MessageUI framework. Create an instance of UIButton class and add one buttonPressed method. So make the following changes in the file.</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></p>
<p><span class="kw1">@interface</span> MailComposerViewController <span class="sy0">:</span> UIViewController <br />
&lt;MFMailComposeViewControllerDelegate&gt;<br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; IBOutlet UIButton <span class="sy0">*</span>button;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed;</div>
</div>
<p><strong>Step 6:</strong> Double click MailComposerViewController.xib file and open it to the Interface Builder. First drag the Round Rect button from the library and place it to the view window. Connect File&#8217;s Owner icon to the View icon and select view. Drag File&#8217;s Owner icon to the round Rect button and select button and select the Round Rect button and bring up Connection Inspector next drag Touch Up Inside to the File&#8217;s Owner icon and select buttonPressed: action. Now save the MailComposerViewController.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 7:</strong> Open the MailComposerViewController.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <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 />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; button.enabled <span class="sy0">=</span> <span class="kw2">YES</span>;<br />
<span class="br0">&#125;</span></p>
<p>
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span>buttonPressed <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; MFMailComposeViewController <span class="sy0">*</span>mailController <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 />
&nbsp; &nbsp; &nbsp; &nbsp; mailController.mailComposeDelegate <span class="sy0">=</span> self;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>mailController setSubject<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Hello World&quot;</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>mailController setMessageBody<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;This is the MailSend Application&#8230;.&quot;</span> isHTML<span class="sy0">:</span><span class="kw2">NO</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>self presentModalViewController<span class="sy0">:</span>mailController animated<span class="sy0">:</span><span class="kw2">YES</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>mailController release<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></p>
<p><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>mailController didFinishWithResult<span class="sy0">:</span><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 <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>self becomeFirstResponder<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <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></div>
</div>
<p><strong>Step 8:</strong> Now Compile and run the application in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-75.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-75-232x300.jpg" alt="" title="1-7" width="232" height="300" class="alignnone size-medium wp-image-2509" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/MailComposer.zip">MailComposer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/mail-send-from-ipad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Display WebPage and AudioFile play in TabBar Application</title>
		<link>http://www.edumobile.org/iphone/ipad-development/display-webpage-and-audiofile-play-in-tabbar-application/</link>
		<comments>http://www.edumobile.org/iphone/ipad-development/display-webpage-and-audiofile-play-in-tabbar-application/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:17:58 +0000</pubDate>
		<dc:creator>Sushant</dc:creator>
				<category><![CDATA[iPad Development]]></category>
		<category><![CDATA[Display WebPage and AudioFile Play]]></category>
		<category><![CDATA[Display WebPage and AudioFile play in TabBar Application]]></category>
		<category><![CDATA[iphone tutorials]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2497</guid>
		<description><![CDATA[This is the TabBar application. In this application we will see how to display Web page and play audio file in the iPad. We will create this application using TabBar Application Template.]]></description>
			<content:encoded><![CDATA[<p>This is the TabBar application. In this application we will see how to display Web page and play audio file in the iPad. We will create this application using TabBar Application Template.</p>
<p><strong>Step 1:</strong> Create a TabBar application using template. Give the application name &#8220;Tabbar_Videoplay_iPad&#8221;.</p>
<p><strong>Step 2</strong>: code 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><strong>Step 3:</strong> Xpand classes and notice Interface Builder created the FirstViewController class for you. Expand Resources and notice the template generated a separate  nib,FirstViewr.xib, for the “ Tabbar_Videoplay_iPad”.</p>
<p><strong>Step 4:</strong> We need to add UIViewController class in the project . Select classes -> Add -> New Files -> Select UIViewController class and give the class name &#8220;AudioPlayViewController&#8221;. Select corresponding .xib file and targeted for iPad.</p>
<p><strong>Step 5: </strong>We have added AudioToolbox and AVFoundation framework in the Frameworks folder.</p>
<p><strong>Step 6:</strong> We need to add two music file in the resource folder. Give the name of the music file &#8220;sound.aif&#8221;,&#8221;music.mp3&#8243;.</p>
<p><strong>Step 7:</strong> In the FirstViewController.h file we have created instance of UIWebView class . So make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="co1">#import &lt;UIKit/UIKit.h&gt;</span></p>
<p><span class="kw1">@interface</span> FirstViewController <span class="sy0">:</span> UIViewController <span class="br0">&#123;</span><br />
&nbsp; IBOutlet UIWebView <span class="sy0">*</span>webDisplay;<br />
<span class="br0">&#125;</span><br />
<span class="kw1">@property</span><span class="br0">&#40;</span>nonatomic,retain<span class="br0">&#41;</span> UIWebView <span class="sy0">*</span>webDisplay;</div>
</div>
<p><strong>Step 8: </strong>Double click the MainWindow.xib file and open it to the Interface Builder. Select the FirstViewController from the TabBar Controller and bring up Attribute Inspector and delete the NIB name (See the figure 1). Now drag the WebView from the library and place it to the view window (See the figure 2). Select the first tab from the view window and bring up Connection Inspector and connect webDisplay to the Web View (See the figure 3). Save the MainWindow.xib file and close it and go back to the Xcode.<br />
<a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-77.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-77-300x215.jpg" alt="" title="1-7" width="300" height="215" class="alignnone size-medium wp-image-2565" /></a></p>
<p>               <strong>Figure 1</strong></p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/2-42.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/2-42-300x225.jpg" alt="" title="2-4" width="300" height="225" class="alignnone size-medium wp-image-2566" /></a></p>
<p>                  <strong>Figure 2</strong></p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/3-1.jpg"><img src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/3-1-300x215.jpg" alt="" title="3-1" width="300" height="215" class="alignnone size-medium wp-image-2567" /></a></p>
<p>                 <strong>Figure 3</strong></p>
<p><strong>Step 9: </strong>Open the FirstViewController.m file and make the following changes in the file.</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> <span class="sy0">*</span>urlAddress <span class="sy0">=</span> <span class="co3">@</span><span class="st0">&quot;http://www.google.com&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> <span class="sy0">*</span>url <span class="sy0">=</span> <span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> URLWithString<span class="sy0">:</span>urlAddress<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/"><span class="kw5">NSURLRequest</span></a> <span class="sy0">*</span>requestObj <span class="sy0">=</span> <span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/"><span class="kw5">NSURLRequest</span></a> requestWithURL<span class="sy0">:</span>url<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>webDisplay loadRequest<span class="sy0">:</span>requestObj<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="br0">&#91;</span>super viewDidLoad<span class="br0">&#93;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 10: </strong>In the AudioPlayViewController.h file , we have import AudioToolbox and AVFoundation framework. Create an instance of  AVAudioPlayer and UIButton class. Define two IBAction method. So make the following changes in the file.</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;AudioToolbox/AudioToolbox.h&gt;</span><br />
<span class="co1">#import &lt;AVFoundation/AVFoundation.h&gt;</span></p>
<p><span class="kw1">@interface</span> AudioPlayViewController <span class="sy0">:</span> UIViewController &nbsp;&lt;AVAudioPlayerDelegate&gt; <span class="br0">&#123;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; SystemSoundID systemSoundID;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AVAudioPlayer <span class="sy0">*</span>player;<br />
&nbsp; &nbsp; &nbsp; &nbsp; UIButton <span class="sy0">*</span>StartStopSound;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet AVAudioPlayer <span class="sy0">*</span>player;<br />
<span class="kw1">@property</span> <span class="br0">&#40;</span>nonatomic, retain<span class="br0">&#41;</span> IBOutlet UIButton <span class="sy0">*</span>StartStopSound;</p>
<p>
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSound<span class="sy0">:</span> <span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span> sender;<br />
<span class="sy0">-</span> <span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSong<span class="sy0">:</span> <span class="br0">&#40;</span><span class="kw4">id</span><span class="br0">&#41;</span> sender;</div>
</div>
<p><strong>Step 11: </strong>Double click the AudioPlayViewController.xib file and open it to the view window. First drag the two Round Rect from the library and place it to the view window and give the name &#8220;Play Sound&#8221; , &#8220;Play Song&#8221;. Select the  &#8221;Play Sound&#8221; button and bring up connection Inspector and drag Touch Up Inside to the File Owner icon select playSound: action. Do the same thing for the &#8220;Play Song&#8221;  button and select the playSong: action. Connect File&#8217;s Owner icon to the &#8220;Play Song&#8221; button and select StartStopSound. Now save the AudioPlayViewController.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 12:</strong> Open the AudioPlayViewController.m file and make the following changes:</p>
<div class="codesnip-container" >
<div class="objc codesnip" style="font-family:monospace;"><span class="sy0">-</span> <span class="br0">&#40;</span><span class="kw4">void</span><span class="br0">&#41;</span>viewDidLoad <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;InView did load&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AudioServicesCreateSystemSoundID<span class="br0">&#40;</span><span class="br0">&#40;</span>CFURLRef<span class="br0">&#41;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> fileURLWithPath<span class="sy0">:</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pathForResource<span class="sy0">:</span> <span class="co3">@</span><span class="st0">&quot;sound&quot;</span> ofType<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;aif&quot;</span><span class="br0">&#93;</span><span class="br0">&#93;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sy0">&amp;</span>systemSoundID<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; player <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>AVAudioPlayer alloc<span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; initWithContentsOfURL<span class="sy0">:</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span class="kw5">NSURL</span></a> fileURLWithPath<span class="sy0">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/"><span class="kw5">NSBundle</span></a> mainBundle<span class="br0">&#93;</span> pathForResource<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;music&quot;</span> ofType<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;mp3&quot;</span><span class="br0">&#93;</span><span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player prepareToPlay<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></p>
<p>
<span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSound<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 />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;In Sample&quot;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AudioServicesPlaySystemSound<span class="br0">&#40;</span>systemSoundID<span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="sy0">-</span><span class="br0">&#40;</span>IBAction<span class="br0">&#41;</span> playSong<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 />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#91;</span><span class="br0">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span class="kw5">NSString</span></a> stringWithFormat<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;%@&quot;</span>, <span class="br0">&#91;</span>StartStopSound titleForState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span><span class="br0">&#93;</span> isEqualToString<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Play Song&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player play<span class="br0">&#93;</span>;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>StartStopSound setTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Stop Song&quot;</span> forState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span>; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">else</span> <span class="br0">&#123;</span>&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>player stop<span class="br0">&#93;</span>;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#91;</span>StartStopSound setTitle<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;Play Song&quot;</span> forState<span class="sy0">:</span>UIControlStateNormal<span class="br0">&#93;</span>; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Step 13:</strong> Double click the MainWindow.xib file and open it to the Interface Builder. Select the ViewController from the TabBar Controller  in MainWindow and bring up Identity Inspector and change the class name into AudioPlayViewController and bring up Attribute Inspector, set the NIB name into &#8220;AudioPlayViewController&#8221;. Now save the MainWindow.xib file, close it and go back to the Xcode.</p>
<p><strong>Step 14: </strong>Now Compile the application and run it in the Simulator.</p>
<p><a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-74.jpg"><img class="alignnone size-medium wp-image-2498" title="1-7" src="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/1-74-234x300.jpg" alt="" width="234" height="300" /></a></p>
<p>You can <strong>Download SourceCode</strong> from here <a href="http://www.edumobile.org/iphone/wp-content/uploads/2010/07/Tabbar_Videoplay_iPad.zip">Tabbar_Videoplay_iPad</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/ipad-development/display-webpage-and-audiofile-play-in-tabbar-application/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mobile Report by Distimo, June 2010 &#8211; A Must Read for Business Intelligence Data</title>
		<link>http://www.edumobile.org/iphone/iphone-business/mobile-report-by-distimo-june-2010-a-must-read-for-business-intelligence-data/</link>
		<comments>http://www.edumobile.org/iphone/iphone-business/mobile-report-by-distimo-june-2010-a-must-read-for-business-intelligence-data/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 11:42:38 +0000</pubDate>
		<dc:creator>vishy</dc:creator>
				<category><![CDATA[iPhone Business]]></category>

		<guid isPermaLink="false">http://www.edumobile.org/iphone/?p=2476</guid>
		<description><![CDATA[This report covers the Apple App Store for iPad, the Apple App Store for iPhone, BlackBerry App World (Worldwide), Google Android Market, Nokia Ovi Store, Palm App Catalog and Windows Marketplace for Mobile for May 2010 in the United States. The major findings are:]]></description>
			<content:encoded><![CDATA[<p>This report covers the Apple App Store for iPad, the Apple App Store for iPhone, BlackBerry App World (Worldwide), Google Android Market, Nokia Ovi Store, Palm App Catalog and Windows Marketplace for Mobile for May 2010 in the United States. <strong></strong></p>
<blockquote><p><strong>The major findings are:</strong></p>
<p>More than 50% of applications are priced below or equal to $2.00 in all stores, with the exception of BlackBerry App World and Windows Marketplace for Mobile.</p>
<p>The average price of all paid applications and the 100 most popular paid applications in the Apple App Store for iPad ($4.65) is higher than in the Apple App Store for iPhone ($4.01). However, the average price of the 100 top grossing applications is higher on the Apple App Store for iPhone.</p>
<p>Google Android Market has the largest share of free applications (57%) and Windows Marketplace for Mobile has the smallest (22%).</p>
<p>Twitter, Inc. published their native application in the Apple App Store and Google Android Market, becoming the monthly number 10 free application in the Apple App Store for iPhone, and the number 6 free application in Google Android Market.</p>
<p>Nine out of the ten most popular free applications and eight out of ten most popular paid applications in the Apple App Store for iPhone are games.</p>
<p>In the competitive e-reader market, both the iBooks application by Apple, Inc., and the Kindle application by Amazon.com are ranked among the 10 most popular free applications in the Apple App Store for iPad. Apple’s application is ranked number one however, and Amazon’s application is ranked number ten.</p>
<p>Five out of the ten most popular free applications in Windows Marketplace for Mobile are published by Microsoft Corporation.</p></blockquote>
<p><strong><a href="http://distimo.createsend5.com/t/r/l/pjilyu/tukhsutu/j" target="_blank">You may download the entire report for free here!</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edumobile.org/iphone/iphone-business/mobile-report-by-distimo-june-2010-a-must-read-for-business-intelligence-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
