<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4048514796032424265</id><updated>2024-08-29T23:26:09.695-07:00</updated><category term="Beginning iPhone development"/><category term="Outlets and Actions"/><category term="Making the Keyboard disappear"/><category term="Type Conversion"/><category term="UIPickerView"/><title type='text'>Easy iPhone Development</title><subtitle type='html'>Providing easy to follow iPhone programming tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-4807144303824995977</id><published>2012-07-03T22:35:00.004-07:00</published><updated>2012-07-03T22:35:55.108-07:00</updated><title type='text'>Dealing with Anxiety</title><content type='html'>An article i wrote a while back based on Pastor Don Green&#39;s sermon.&lt;br /&gt;
Hope it helps you to trust in God fully and take away the focus of your worries.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/open?id=0B3mFctiTYo5MeVVZclZETG9ZU0U&quot;&gt;https://docs.google.com/open?id=0B3mFctiTYo5MeVVZclZETG9ZU0U&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/4807144303824995977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2012/07/dealing-with-anxiety.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4807144303824995977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4807144303824995977'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2012/07/dealing-with-anxiety.html' title='Dealing with Anxiety'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-3855310969322074317</id><published>2010-08-02T21:32:00.000-07:00</published><updated>2010-08-02T21:33:09.139-07:00</updated><title type='text'>Learn English on the iPhone</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Useful for your primary six niece, nephews, cousins, children to practise their English on the go!&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img src=&quot;http://a1.phobos.apple.com/us/r1000/027/Purple/5b/31/1e/mzl.kxeaysiz.170x170-75.png&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get the app here.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wo/5.0.9.7.7.3.1.1.0.5.3.1.1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/wo/5.0.9.7.7.3.1.1.0.5.3.1.1&lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/3855310969322074317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/08/learn-english-on-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/3855310969322074317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/3855310969322074317'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/08/learn-english-on-iphone.html' title='Learn English on the iPhone'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-1605265965478960020</id><published>2010-07-25T19:06:00.000-07:00</published><updated>2010-07-25T19:06:48.383-07:00</updated><title type='text'>Short post on navigating between views.</title><content type='html'>&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;In this article, we will go through how to incorporate multiple views into our application. By default, creating a new View-based project in Xcode gives you a View. To create a second view, right click on classes, select Add new View class with xib file. That will give you a new ViewController class along with its xib file.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The below example code shows you how you can link your first view to your second view and back from second view to your first view. Remember to import the .h file of the View.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;OctopusAnswer *octupusAnswer = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f6e74;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[[OctopusAnswer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;alloc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;] &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;initWithNibName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #c41a16;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;@&quot;OctopusAnswer&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;bundle&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #aa0d91;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;nil&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #aa0d91;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;self&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #5c2699;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;view&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;addSubview&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f6e74;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;octupusAnswer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;view&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f6e74;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;octupusAnswer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f6e74;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;answer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #5c2699;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;text&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; = [tmpAns &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;stringByAppendingString&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #c41a16;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;@&quot;!&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;// on the other form&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #aa0d91;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;self&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #5c2699;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;view&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;removeFromSuperview&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Menlo-Regular;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/1605265965478960020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/short-post-on-navigating-between-views.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/1605265965478960020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/1605265965478960020'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/short-post-on-navigating-between-views.html' title='Short post on navigating between views.'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-135046822046679623</id><published>2010-07-19T22:37:00.000-07:00</published><updated>2010-07-19T22:37:37.534-07:00</updated><title type='text'>I am on AppStore</title><content type='html'>&lt;div class=&quot;UIIntentionalStory_Header&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px;&quot;&gt;&lt;h3 class=&quot;UIIntentionalStory_Message&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Finally, my first app on AppStore. Check it out.&amp;nbsp;&lt;/h3&gt;&lt;h3 class=&quot;UIIntentionalStory_Message&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;h3 class=&quot;UIIntentionalStory_Message&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Useful tool to use before deciding to buy that Punggol HDB flat or Weekend car&lt;/h3&gt;&lt;h3 class=&quot;UIIntentionalStory_Message&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;h3 class=&quot;UIIntentionalStory_Message&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}&quot; style=&quot;color: #333333; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;a href=&quot;http://itunes.apple.com/sg/app/easy-loan-calculator/id381932538?mt=8&quot;&gt;http://itunes.apple.com/sg/app/easy-loan-calculator/id381932538?mt=8&lt;/a&gt;&lt;img class=&quot;img&quot; src=&quot;http://external.ak.fbcdn.net/safe_image.php?d=a2f4cfba3c90cdbc7518e9d0855fc76a&amp;amp;w=90&amp;amp;h=90&amp;amp;url=http%3A%2F%2Fa1.phobos.apple.com%2Fus%2Fr1000%2F009%2FPurple%2Fd8%2F16%2Fd6%2Fmzl.nypyxmnx.175x175-75.jpg&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block;&quot; /&gt;&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class=&quot;UIStoryAttachment UIStoryAttachment_InlineInfo&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;attach&amp;quot;}&quot; id=&quot;&quot; style=&quot;color: #333333; font-family: &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 11px; margin-bottom: 5px; margin-top: 6px; overflow-x: hidden; overflow-y: hidden; padding-right: 10px;&quot;&gt;&lt;div class=&quot;UIStoryAttachment_Media UIStoryAttachment_MediaSingle&quot; data-ft=&quot;{&amp;quot;type&amp;quot;:&amp;quot;media&amp;quot;}&quot; style=&quot;float: left; overflow-x: hidden; overflow-y: hidden; padding-right: 10px;&quot;&gt;&lt;div class=&quot;UIMediaItem&quot;&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/135046822046679623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/i-am-on-appstore.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/135046822046679623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/135046822046679623'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/i-am-on-appstore.html' title='I am on AppStore'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-156977008919818996</id><published>2010-07-18T03:59:00.000-07:00</published><updated>2010-07-18T03:59:39.783-07:00</updated><title type='text'>Reading a Text File line by line and Tokenizing each line in Objective C</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Here&#39;s a confirmed working code of how to read a file line by line and thereafter, tokenizing it.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *path = [[&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSBundle&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;mainBundle&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;pathForResource&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;test2&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;ofType&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;txt&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *string = [[&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;initWithContentsOfFile&lt;span style=&quot;color: black;&quot;&gt;:path &lt;/span&gt;encoding&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSASCIIStringEncoding&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;error&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *lines = [string &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;componentsSeparatedByString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;\n&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]; &lt;/span&gt;// each line, adjust character for line endings&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1aad;&quot;&gt;NSEnumerator&lt;/span&gt; *nse = [lines &lt;span style=&quot;color: #490085;&quot;&gt;objectEnumerator&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSMutableArray&lt;span style=&quot;color: black;&quot;&gt; *values = [&lt;/span&gt;NSMutableArray&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt; *tmp;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cb00a5;&quot;&gt;while&lt;/span&gt;(tmp = [nse &lt;span style=&quot;color: #490085;&quot;&gt;nextObject&lt;/span&gt;])&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *chunks = [tmp &lt;/span&gt;componentsSeparatedByString&lt;span style=&quot;color: black;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;,&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSEnumerator&lt;/span&gt; *nse2 = [chunks &lt;span style=&quot;color: #490085;&quot;&gt;objectEnumerator&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt; *tmp2;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;while&lt;/span&gt;(tmp2 = [nse2 &lt;span style=&quot;color: #490085;&quot;&gt;nextObject&lt;/span&gt;]){&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;%@&quot;&lt;/span&gt;,tmp2);&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e00005;&quot;&gt;@&quot;%@&quot;&lt;/span&gt;, tmp);&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/156977008919818996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/reading-text-file-line-by-line-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/156977008919818996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/156977008919818996'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/reading-text-file-line-by-line-and.html' title='Reading a Text File line by line and Tokenizing each line in Objective C'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-6657715079175094930</id><published>2010-07-15T22:28:00.000-07:00</published><updated>2010-07-15T22:28:40.624-07:00</updated><title type='text'>Ask Octopus Paul</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;There was a recent rage over a Octopus called Paul. Now feel this rage over the iPhone.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Lookout for the upcoming Ask the Octopus app! Free download. No superstition. Just for fine!&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyQgx1kxyOW0LYzd9iQL5NEHVZ8BeUxirC_0tsiozzhHoL_8TElEjGadTbAXS9OcWUnIG9Ml9S9A6Y0PpG9AUzKXwFY1EX4GzCQDz9_tyYfeDKtTzZmOKTqsEWG2cmCT1xTpfMg3ZR1w0/s1600/octopus.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyQgx1kxyOW0LYzd9iQL5NEHVZ8BeUxirC_0tsiozzhHoL_8TElEjGadTbAXS9OcWUnIG9Ml9S9A6Y0PpG9AUzKXwFY1EX4GzCQDz9_tyYfeDKtTzZmOKTqsEWG2cmCT1xTpfMg3ZR1w0/s320/octopus.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/6657715079175094930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/ask-octopus-paul.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6657715079175094930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6657715079175094930'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/ask-octopus-paul.html' title='Ask Octopus Paul'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyQgx1kxyOW0LYzd9iQL5NEHVZ8BeUxirC_0tsiozzhHoL_8TElEjGadTbAXS9OcWUnIG9Ml9S9A6Y0PpG9AUzKXwFY1EX4GzCQDz9_tyYfeDKtTzZmOKTqsEWG2cmCT1xTpfMg3ZR1w0/s72-c/octopus.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-4311624763582889830</id><published>2010-07-15T03:05:00.001-07:00</published><updated>2010-07-15T22:25:37.926-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="UIPickerView"/><title type='text'>Using Two PickerViews together</title><content type='html'>&lt;div style=&quot;background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span id=&quot;internal-source-marker_0.49111917056143284&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Using two PickerViews together. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Expanding upon the previous tutorial, we will explore how to use two PickerViews together. Such is useful for ‘converter’ like applications, eg. currency converter, units converter. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Below figure shows an example of a bible units converter. that uses two PickerViews.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: #7e4726; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;img height=&quot;376px;&quot; src=&quot;https://lh6.googleusercontent.com/tq-44rjLIngWvNaykUovzDj-cRn9Y1hEmronwfGiz-f2GXi9g0nf2kNh2CDlDKwfK0BzVkVnMCtHEQD2gLdNZ2-_LDi5H9EmAQAQuiEj1Pj2--wrvw&quot; width=&quot;244px;&quot; /&gt;&lt;span style=&quot;background-color: transparent; color: #7e4726; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;To have two PickerViews in your app, first drag and drop another PickerView into you xib file .. Declare the Outlet for it. Remember to click them to File’s owner.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;The code where you have to edit are the below. Include an if-else condition based on the pickerView that triggered the method. I have two pickerViews, one named pickerView, the other pickerView2. Check which pickerView triggered the method, and set the corresponding label to the value of that particular pickerView.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)pickerView:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;UIPickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; *)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;thePickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; didSelectRow:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)row inComponent:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)component&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;([&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;thePickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;isEqual&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #265a5e; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;mlabel&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;=&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;objectAtIndex&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:row];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;mlabel2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;=&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;objectAtIndex&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:row];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Have a similar if-else condition to return the no. of rows in each PickerView and also the title for each pickerView cell.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)pickerView:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;UIPickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; *)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; numberOfRowsInComponent:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)component;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;([&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;isEqual&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #265a5e; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; *)pickerView:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;UIPickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; *)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; titleForRow:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)row forComponent:(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #7e1aad; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NSInteger&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;)component;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;([&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;isEqual&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #265a5e; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pickerView&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;objectAtIndex&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:row];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #cb00a5; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #428288; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;arrayNo2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #490085; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;objectAtIndex&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:row];&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 8pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;So there you go, how to use two picker Views together.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/4311624763582889830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/using-two-pickerviews-together.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4311624763582889830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4311624763582889830'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/using-two-pickerviews-together.html' title='Using Two PickerViews together'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh6.googleusercontent.com/tq-44rjLIngWvNaykUovzDj-cRn9Y1hEmronwfGiz-f2GXi9g0nf2kNh2CDlDKwfK0BzVkVnMCtHEQD2gLdNZ2-_LDi5H9EmAQAQuiEj1Pj2--wrvw=s72-c" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-9092053913646843496</id><published>2010-07-12T08:23:00.000-07:00</published><updated>2010-07-12T09:58:40.733-07:00</updated><title type='text'>Playing Sound with button clicks - Vuvuzela App</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;In this article, we will doing an app that plays sounds when you click on button. Many hots apps that have been downloaded just leverage upon this simple idea. Get a funny/interesting sound, press a button (helps if you have an image for the button) and play the sound.&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;In this article, let&#39;s have an app that plays cute baby sound whenever a user clicks on a button. Create a new view-based application in xcode, then design a UI similar to the below in InterfaceBuilder. Take note that the images are actually buttons, where you just have to specify the image property of the button. The rest of the controls are basically labels.&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center&quot;&gt;&lt;br&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center&quot;&gt;&lt;a style=&quot;margin-left: 1em; margin-right: 1em&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF6XouPj7pM_4BBKiyDvGFScclk9Vt8_pStvwiWgcM2JVxlKeev484unu1tG_0cVY5-t9yDElaYAUwGjE0TDjlBzd9psXSHWbVUducbA9HV-BP4-WnIlDWXVCIPwQ3YfrWDPirdu2z2J0/s1600/Screen+shot+2010-07-12+at+PM+02.23.35.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF6XouPj7pM_4BBKiyDvGFScclk9Vt8_pStvwiWgcM2JVxlKeev484unu1tG_0cVY5-t9yDElaYAUwGjE0TDjlBzd9psXSHWbVUducbA9HV-BP4-WnIlDWXVCIPwQ3YfrWDPirdu2z2J0/s320/Screen+shot+2010-07-12+at+PM+02.23.35.png&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;In my app, I have four buttons. Of course one will do if that is a really cool sound, for eg. vuvuzela. Copy the below code as your ViewController.h file&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e4726&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e4726&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e4726&quot;&gt; &lt;h3&gt;&lt;font size=&quot;1&quot;&gt;&lt;/font&gt;&lt;/h3&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e4726&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e4726&quot;&gt; &lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;br&gt;#include &amp;lt;AudioToolbox/AudioToolbox.h&amp;gt;&lt;br&gt;&lt;br&gt;@interface SysSoundViewController : UIViewController {&lt;br&gt;CFURLRef soundFileURLRef;&lt;br&gt;SystemSoundID soundFileObject;&lt;br&gt;}&lt;br&gt;&lt;br&gt;@property (readwrite) CFURLRef soundFileURLRef;&lt;br&gt;@property (readonly) SystemSoundID soundFileObject;&lt;br&gt;&lt;br&gt;- (IBAction) playASound;&lt;br&gt;- (IBAction) vibrate;&lt;br&gt;@end&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Explanation&lt;/span&gt;&lt;/u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;We declare a CFURLRef which is a reference to a object representing access to a URL. It is useful as long as the resource you are accessing can be done via a URL. This CSURL object will later hold the URL to our sound files.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #428288&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFURLRef&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileURLRef&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;SystemSoundID represents a System Sound object.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #428288&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;SystemSoundID&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileObject&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;We next declare two Actions for linking to our buttons later on. One to play a sound, the other, to vibrate the phone.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;IBAction&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) playASound;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;IBAction&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) vibrate;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Copy the following code next for the ViewController.m file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #e00005&quot;&gt;&lt;font size=&quot;1&quot;&gt;&lt;font face=&quot;Courier New&quot;&gt;&lt;span style=&quot;color: #7e4726&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;#import &quot;SysSoundViewController.h&quot;&lt;br&gt;@implementation SysSoundViewController&lt;br&gt;&lt;br&gt;@synthesize soundFileURLRef;&lt;br&gt;@synthesize soundFileObject;&lt;br&gt;&lt;br&gt;CFBundleRef mainBundle;&lt;br&gt;&lt;br&gt;- (void) viewDidLoad {&lt;br&gt;[super viewDidLoad];&lt;br&gt;// Get the main bundle for the app&lt;br&gt;mainBundle = CFBundleGetMainBundle ();&lt;br&gt;}&lt;br&gt;&lt;br&gt;// Respond to a tap on the System Sound button&lt;br&gt;- (IBAction) playASound {&lt;br&gt;// Get the URL to the sound file to play&lt;br&gt;soundFileURLRef&amp;nbsp; = CFBundleCopyResourceURL (mainBundle,CFSTR (&quot;a&quot;),CFSTR(&quot;wav&quot;),NULL);&lt;br&gt;// Create a system sound object representing the sound file&lt;br&gt;AudioServicesCreateSystemSoundID (soundFileURLRef, &amp;amp;soundFileObject);&lt;br&gt;AudioServicesPlaySystemSound (self.soundFileObject);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font face=&quot;Courier New&quot;&gt;&lt;br&gt;// Respond to a tap on the Vibrate button&lt;br&gt;- (IBAction) vibrate {&lt;br&gt;AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);&lt;br&gt;}&lt;br&gt;&lt;br&gt;- (void) dealloc {&lt;br&gt;[super dealloc];&lt;br&gt;AudioServicesDisposeSystemSoundID (self.soundFileObject);&lt;br&gt;CFRelease (soundFileURLRef);&lt;br&gt;}&lt;br&gt;@end&lt;/font&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Explanation:&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;The CFBundle allows you to use a folder hierachy called a bundle to organize and locate serveral kinds of resources like images, sounds or executable code. In our case, it represents the folder hierachy we have in the &#39;Resources&#39; folder. Essentially, it provides us access to our Resources folder.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFBundleRef mainBundle;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;min-height: 13px; margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;The viewDidLoad is the method that is called whenever the View loads. In it, we call the viewDidLoad of the parent class i.e. UIView.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) viewDidLoad {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;super&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;viewDidLoad&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;min-height: 13px; margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Returns the application&#39;s main bundle. Or folder.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #008c00&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;// Get the main bundle for the app&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;mainBundle&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; = &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFBundleGetMainBundle&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; ();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Action linked to button.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #008c00&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;// Respond to a tap on the System Sound button&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;IBAction&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) playASound {&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFBundleCopyResourceURL returns the location of the resource of name &quot;a&quot; and type &quot;wav&quot; from the mainbundle (Resource folder). Of course ensure that you have a “a.wav” audio file under ‘Resources’.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #008c00&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;// Get the URL to the sound file to play&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileURLRef&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;nbsp; = &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFBundleCopyResourceURL&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;mainBundle&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span style=&quot;color: #7e4726&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFSTR&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #e00005&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&quot;a&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span style=&quot;color: #7e4726&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFSTR&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e00005&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&quot;wav&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;),&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;NULL&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;min-height: 13px; margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesCreateSystemSoundID creates a system sound object from the specified URL (first argument) and outputs it to the &amp;amp;soundFileObject. Notice that there is a &amp;amp; before soundFileObject. What that means is that we are passing the soundFileObject object reference to the method, such that when the method returns, it actually refers to a initialized soundFileObject.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #008c00&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;// Create a system sound object representing the sound file&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesCreateSystemSoundID&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileURLRef&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #428288&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileObject&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;min-height: 13px; margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Finally, AudioServicesPlaySystemSound plays a short system sound of 30 secs or less. &#39;self&#39; simply means &#39;this&#39;. The current object&#39;s soundFileObject.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesPlaySystemSound&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;self&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileObject&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;For this particular Action, we can the same method &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesPlaySystemSound&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; but the argument passed is different. When we provide the kSystemSoundID_Vibrate argument to it, it will invoke a brief vibration.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #008c00&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;// Respond to a tap on the Vibrate button&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;IBAction&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) vibrate {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesPlaySystemSound&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;kSystemSoundID_Vibrate&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;min-height: 13px; margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Releases and disposes of the soundFile and soundFileURL objects.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;) dealloc {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;super&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;dealloc&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #490085&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;AudioServicesDisposeSystemSoundID&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;self&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #428288&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileObject&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #428288&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #490085&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;CFRelease&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;soundFileURLRef&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: black&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt;&amp;nbsp;&lt;/div&gt; &lt;div style=&quot;margin: 0px; font: 11px menlo; color: #cb00a5&quot;&gt; &lt;div style=&quot;margin: 0px&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: arial, helvetica, sans-serif&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium&quot;&gt;Ensure that you link the buttons to the Actions as described in earlier tutorials and soon, you are on your way to doing your own vuvuzela app!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/9092053913646843496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/playing-sound-with-button-clicks.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/9092053913646843496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/9092053913646843496'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/playing-sound-with-button-clicks.html' title='Playing Sound with button clicks - Vuvuzela App'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF6XouPj7pM_4BBKiyDvGFScclk9Vt8_pStvwiWgcM2JVxlKeev484unu1tG_0cVY5-t9yDElaYAUwGjE0TDjlBzd9psXSHWbVUducbA9HV-BP4-WnIlDWXVCIPwQ3YfrWDPirdu2z2J0/s72-c/Screen+shot+2010-07-12+at+PM+02.23.35.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-6947081224995038980</id><published>2010-07-11T08:59:00.001-07:00</published><updated>2010-07-11T08:59:42.039-07:00</updated><title type='text'>Make your own Vuvuzela app</title><content type='html'>&lt;p&gt;&lt;img height=&quot;296&quot; alt=&quot;iPhone Screenshot 2&quot; src=&quot;http://a1.phobos.apple.com/us/r1000/057/Purple/d9/5c/17/mzl.heccbqgt.320x480-75.jpg&quot; width=&quot;197&quot;&gt;&lt;/p&gt; &lt;p&gt;It’s an app that’s been downloaded 5 million times. So what’s so special about it? Other similar examples are the iFart app.&lt;br&gt;Essentially, both apps are just buttons with an image that plays a sound when clicked. So how hard can it be?&lt;/p&gt; &lt;p&gt;Will go through how to play an audio file soon. And you can be on your way to doing your own vuvuzela app.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/6947081224995038980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/make-your-own-vuvuzela-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6947081224995038980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6947081224995038980'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/make-your-own-vuvuzela-app.html' title='Make your own Vuvuzela app'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-6206846142373284641</id><published>2010-07-10T01:37:00.000-07:00</published><updated>2010-07-14T00:22:12.034-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Making the Keyboard disappear"/><title type='text'>Making the keyboard disappear - Easy Loan Calculator Part 4</title><content type='html'>How do we make the keyboard disappear?&lt;br /&gt;
&lt;br /&gt;
Surprisingly, the return/done key does not allow us to close the keyboard.&lt;br /&gt;
&lt;br /&gt;
What we aim to achieve to do here is whenever the user clicks outside of any textbox, the key board will disappear. How do we do that?&lt;br /&gt;
&lt;br /&gt;
In Interface Builder, create a button and stretch it over the entire screen. It should cover the entire screen. Go to Layout -&amp;gt; Send to back. The button should be send to the back.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg13i14vbuYHhNN4VA5w68p67CARLwD5R6f_KA40_abDXKNAnTYZi0m9LqQDme_H1EnTGm3jDSfORpBvCP0V1JhDeOMed6BSieOaHAEFdk_WoXvgLQlpoe96_NiJN9aXRQ7eUmg-x37dpw/s1600/Screen+shot+2010-07-10+at+PM+04.36.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg13i14vbuYHhNN4VA5w68p67CARLwD5R6f_KA40_abDXKNAnTYZi0m9LqQDme_H1EnTGm3jDSfORpBvCP0V1JhDeOMed6BSieOaHAEFdk_WoXvgLQlpoe96_NiJN9aXRQ7eUmg-x37dpw/s320/Screen+shot+2010-07-10+at+PM+04.36.20.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Hence, whenever a user clicks outside the textbox, she is actually clicking on the background button.&lt;br /&gt;
&lt;br /&gt;
Remember that we have actually declared an Action in the .h file.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;-(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;) bgTouched:(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;) sender;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-size: medium;&quot;&gt;We have also implemented it in the .m file.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) bgTouched:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender{&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;annualInterestRate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;What we are doing is resigning control of all the textboxes whenever the background button is clicked. This is done via calling the textbox resignFirstResponder instance method.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Last by not least, in Interface Builder, connect the background button to the bgTouched Action and your Easy Loan Calculator is finally complete! Yes after four parts!!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Press Command -R to try.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Feel free to give comments.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/6206846142373284641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/making-keyboard-disappear-easy-loan.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6206846142373284641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6206846142373284641'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/making-keyboard-disappear-easy-loan.html' title='Making the keyboard disappear - Easy Loan Calculator Part 4'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg13i14vbuYHhNN4VA5w68p67CARLwD5R6f_KA40_abDXKNAnTYZi0m9LqQDme_H1EnTGm3jDSfORpBvCP0V1JhDeOMed6BSieOaHAEFdk_WoXvgLQlpoe96_NiJN9aXRQ7eUmg-x37dpw/s72-c/Screen+shot+2010-07-10+at+PM+04.36.20.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-6466209416653483553</id><published>2010-07-09T21:41:00.000-07:00</published><updated>2010-07-10T01:27:02.498-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><category scheme="http://www.blogger.com/atom/ns#" term="Outlets and Actions"/><title type='text'>Using Interface Builder to connect Outlets/Actions - Easy Loan Calculator Part 3</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Essentially, we have implemented all the codes. In summary, we have declared Outlets which are references to our UIControls and Actions, which are events which we be triggered when we click on buttons.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Now we need to link the Outlets to the UIControls that we have designed in our xib file.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Apple enforces a View-Controller-Model. Which is essentially keeping the UI layer and the business logic layer separate. Advantages are that we can change either layer without affecting much the other layer. i.e. if i were to change my UI drastically, my business logic layer can still link to the new UI with some re-linking.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Now it is this linking that we are going to do now. Linking the text boxes and labels to the Outlets we have declared earlier. (They are called IBOutlet because IB - Interface Builder)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;In Interface Builder, you have these window with three icons in it. The view icon just opens your View. Ignore First Responder for now.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Click on File&#39;s owner. Press and hold the Control key. Mouse click from File&#39;s owner to over the textbox. You should see a black box with drop down values of all the Outlets of textbox type that you have declared earlier. &amp;nbsp;See below. Click on the Outlet which should correspond to that textbox. You have just linked your Outlet to the textbox.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2YB_1_zA2jNbx6Atp0SQdvbFv6vkSRjG34WNzn1bEIFfZnggleyEKmdI8KnGHaiD_toPCLz-GQMpCGBwAd1jt8J_JwOqKriTj7ErQVwfKKs6zuPYF301C3fr_x5F-7hM2ocC8GT2m49E/s1600/Screen+shot+2010-07-10+at+PM+12.18.07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2YB_1_zA2jNbx6Atp0SQdvbFv6vkSRjG34WNzn1bEIFfZnggleyEKmdI8KnGHaiD_toPCLz-GQMpCGBwAd1jt8J_JwOqKriTj7ErQVwfKKs6zuPYF301C3fr_x5F-7hM2ocC8GT2m49E/s320/Screen+shot+2010-07-10+at+PM+12.18.07.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Continue for the rest of the text boxes and labels. Having done that, we now proceed to link the button to the Action that we have implemented. i.e. link the Calculate button to the Calculate method.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Click on the button. Press and hold the Control key, and drag and hold to File&#39;s Owner. A black box with drop down values of the Events should appear. Select the correct event. In this case, we select the btnCalculate action.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can think of Events or Actions as the same thing.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivx3JSiMjd0V7nZSFhNhVaT7epb-YUhyphenhyphenBiPMq1yGCV0BhX2y9URx0Ml9MHm4NPKTzNkiTgdT0xbBkeb8dcIlBmKN0PLbaryfK22WgWs25kHKNpExyKQsXNdXzrBpuOxIPCPUDgLtbZ_Rk/s1600/Screen+shot+2010-07-10+at+PM+12.31.09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivx3JSiMjd0V7nZSFhNhVaT7epb-YUhyphenhyphenBiPMq1yGCV0BhX2y9URx0Ml9MHm4NPKTzNkiTgdT0xbBkeb8dcIlBmKN0PLbaryfK22WgWs25kHKNpExyKQsXNdXzrBpuOxIPCPUDgLtbZ_Rk/s320/Screen+shot+2010-07-10+at+PM+12.31.09.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;There you go, your Outlets and Actions are all properly linked. Just ensure that you save all your files with command-S. Build and Run with command-R and the iPhone simulator should appear with your loan application. =)&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX-SxkZGXLuu8MG2kvDvfzfNqV3XAja69cYmffgPL61eAD4oT8bFsd51V2qn-DqaiSqf_k1owm7xTx_j75jWJVBz3wC384Sd7kP1EqCLwkeerF53NTjktWq56Q9JNGzMO0JMGTN6y2yOE/s1600/Screen+shot+2010-07-10+at+PM+12.19.29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX-SxkZGXLuu8MG2kvDvfzfNqV3XAja69cYmffgPL61eAD4oT8bFsd51V2qn-DqaiSqf_k1owm7xTx_j75jWJVBz3wC384Sd7kP1EqCLwkeerF53NTjktWq56Q9JNGzMO0JMGTN6y2yOE/s320/Screen+shot+2010-07-10+at+PM+12.19.29.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So you learned the important lesson of Outlets and Actions through this exercise. Essentially, its all about receiving/sending user input (Outlets), and event handling with buttons (Actions).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;With this, you can go on and build many many other applications.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now as you test your application, a terrible thing happens. Your keyboard does not go away! Shocking! isn&#39;t this intuitive that the keyboard should go away? How do we make it go away?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We will touch on that in the next article.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/6466209416653483553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/easy-loan-calculator-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6466209416653483553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6466209416653483553'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/easy-loan-calculator-part-3.html' title='Using Interface Builder to connect Outlets/Actions - Easy Loan Calculator Part 3'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2YB_1_zA2jNbx6Atp0SQdvbFv6vkSRjG34WNzn1bEIFfZnggleyEKmdI8KnGHaiD_toPCLz-GQMpCGBwAd1jt8J_JwOqKriTj7ErQVwfKKs6zuPYF301C3fr_x5F-7hM2ocC8GT2m49E/s72-c/Screen+shot+2010-07-10+at+PM+12.18.07.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-722775719515069835</id><published>2010-07-09T07:42:00.000-07:00</published><updated>2010-07-09T21:57:51.506-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><category scheme="http://www.blogger.com/atom/ns#" term="Type Conversion"/><title type='text'>Objective C - Convert string to double and double to string Part 2 - Filler</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Before we go on to part 3, let me stop to pause for an important part of the code and zoom in a little more. For in the code, we have done something important, converting double into a string, and string into a double.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Now i initially thought that a simple google search would return me the result but to my horror...it doesn&#39;t! Especially for the double to format to 2 dp and become a string.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;So here goes...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;loanAmount = [&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Remember the above code? Its to the equivalent of double d = Convert.ToDouble(tbx.Text) in C#. Over here, we are calling the doubleValue method of the String (or rather NSString - NS = NextStep) class to convert the text box Text property into a double.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*numberFormatter = [[&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter&amp;nbsp;&lt;/span&gt;setNumberStyle&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSNumberFormatterDecimalStyle&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter&amp;nbsp;&lt;/span&gt;setMaximumFractionDigits&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #4800de;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;We now create the NumberFormatter object. Again its prefixxed with NS - NextStep. This object will format our 1.234566 into a nice 1.23 format. Of course you can format to percentages as well. There are also other formatters like date formatters.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1aad; font-family: Menlo, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 11px;&quot;&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*numberFormatter = [[&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: medium;&quot;&gt;We create the NumberFormatter object here. In short, we are doing a NumberFormatter nf = new NumberFormatter() here. [NSNumberFormatter alloc] is for allocating memory to hold this object. init - initialization. You will see [[Object alloc] init] very frequently.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;*n1 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:paymentAmt];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Next, convert the double into a NSNumber type with the above code. Again, in C#, it will be NSNumber n1 = NSNumber.numberWithDouble(payment); Yea, its a static method.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;&amp;nbsp;NSString&lt;/span&gt;&amp;nbsp;*paymentAmtString = [numberFormatter&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n1];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: medium;&quot;&gt;Finally, using the numberFormatter object, which takes in a NSNumber argument, we finally convert our double to a String. Which we can assign to a text box Text property as per below.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;monthlyPayment&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;= paymentAmtString;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: medium;&quot;&gt;So in summary, double -&amp;gt; NSNumber -&amp;gt; NSNumberFormatter -&amp;gt; NSString.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Unbelieveable right, the amount of work you need to convert a formatted double into a String.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Yea, still more unbelievable things to come.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/722775719515069835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/convert-string-to-double-and-double-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/722775719515069835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/722775719515069835'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/convert-string-to-double-and-double-to.html' title='Objective C - Convert string to double and double to string Part 2 - Filler'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-3519726546096440380</id><published>2010-07-09T02:09:00.000-07:00</published><updated>2010-07-10T01:26:25.483-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><category scheme="http://www.blogger.com/atom/ns#" term="Outlets and Actions"/><title type='text'>Outlets and Actions - Easy Loan Calculator Part 2</title><content type='html'>&lt;div&gt;Ok, let&#39;s go on to implement the codes, the nuts and bolts of the calculator. In summary, we have to drag drop labels, textboxes to receive user input, some buttons to trigger the execution of the program, code the formula for the loan, and out put the result to labels again. Let&#39;s begin.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;Under Resources, click on EasyLoanCalculatorViewController.xib file to open Interface Builder.&lt;br /&gt;
&lt;div&gt;You will see a blank view. From the Library window, (you can open the Library from Tools -&amp;gt; Library) you can select your UI controls to the view. Its essentially like toolbox in visual studio.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So carry on and design your UI till it resembles something like the below. Ignore the picture of the percetage sign at the end.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvY8guTqKDHyhLnzIOs1RDLo1oLcjFyMkaJr2L1twXQICNrWQJc-1DKsI_vnvTzDpyuH2EyA4bdBwJRiCHmnV6A_x6Y3-7ip3W2njuco_5RJS7RhtbteOBPhb2ukeVdY3mueayMVs98v8/s1600/Screen+shot+2010-07-09+at+PM+04.37.09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvY8guTqKDHyhLnzIOs1RDLo1oLcjFyMkaJr2L1twXQICNrWQJc-1DKsI_vnvTzDpyuH2EyA4bdBwJRiCHmnV6A_x6Y3-7ip3W2njuco_5RJS7RhtbteOBPhb2ukeVdY3mueayMVs98v8/s320/Screen+shot+2010-07-09+at+PM+04.37.09.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;In the process, you would have dragged and dropped several labels, text boxes, and buttons.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;Next, let&#39;s type out the code for the EasyLoanCalculatorViewController.h file. The code is listed below.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #e00005; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div style=&quot;color: #e00005; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #e00005; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;#import &lt;/span&gt;&lt;uikit/uikit.h&gt;&lt;/uikit/uikit.h&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@interface&lt;/span&gt; EasyLoanCalculatorViewController : UIViewController {&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UITextField&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;tbxLoanAmount&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UITextField&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;UITextField&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;monthlyPayment&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;totalInterest&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *&lt;/span&gt;totalPayment&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *tbxLoanAmount;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *annualInterestRate;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *noOfYears;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *monthlyPayment;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *totalInterest;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt; (&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *totalPayment;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) bgTouched:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) btnCalculate:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;@end&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation of the codes.&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;#import&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e00005;&quot;&gt;&lt;uikit/uikit.h&gt;&lt;/uikit/uikit.h&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;Import the UIKit framework. There are many other frameworks you can import like the Accelerometer, the MapKit and many others which we will go through in future tutorials.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-style: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@interface&lt;/span&gt;&amp;nbsp;EasyLoanCalculator3ViewController : UIViewController {&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Declare an interface&amp;nbsp;EasyLoanCalculator3ViewController that inherits from UIViewController.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5;&quot;&gt;&lt;div style=&quot;color: #428288; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UITextField&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;tbxLoanAmount&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UITextField&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;UITextField&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;monthlyPayment&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;totalInterest&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBOutlet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;UILabel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*&lt;/span&gt;totalPayment&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Declare the UIControls that you are to use in the xib file. These are what we have dragged and dropped previously. These are also called &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Outlets&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;. Outlets are declarations of UIControls where we take in or out put data from/to user. Btw, you need to declare these variables with a * which means that there are object references. Don&#39;t understand? Just do it first. Will slowing understand later.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *tbxLoanAmount;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *annualInterestRate;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UITextField *noOfYears;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *monthlyPayment;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *totalInterest;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@property&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #cb00a5;&quot;&gt;nonatomic&lt;/span&gt;,&lt;span style=&quot;color: #cb00a5;&quot;&gt;retain&lt;/span&gt;) UILabel *totalPayment;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Set these UIControls as properties. Nonatomic refers to that there can be multiple threads running at the same time.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) bgTouched:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) btnCalculate:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;These are &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Actions&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;. Typically, we use buttons to activate actions. We have to code these actions later on in the .m file. Here we have two actions. Just concentrate on btnCalculate for now. It is used for the calculation of the loan formula later on.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;@end&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;I won&#39;t even comment on this. Next up, the .m file. Find the code below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;div style=&quot;color: #e00005; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;#import &lt;/span&gt;&quot;EasyLoanCalculatorViewController.h&quot;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@implementation&lt;/span&gt; EasyLoanCalculator3ViewController&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; tbxLoanAmount;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; annualInterestRate;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; noOfYears;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; monthlyPayment;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; totalInterest;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt; totalPayment;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) bgTouched:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender{&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;annualInterestRate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) btnCalculate:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender{&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; loanAmount = [&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; intRate = [&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; years = [&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; r = intRate/&lt;/span&gt;&lt;span style=&quot;color: #4800de;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;; &lt;/span&gt;// to optimize to handle different payment periods&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; n = years * &lt;span style=&quot;color: #4800de;&quot;&gt;12&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; rPower = &lt;span style=&quot;color: #490085;&quot;&gt;pow&lt;/span&gt;(&lt;span style=&quot;color: #4800de;&quot;&gt;1&lt;/span&gt;+r,n);&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; paymentAmt = loanAmount * r * rPower / (rPower - &lt;span style=&quot;color: #4800de;&quot;&gt;1&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; totalPaymentd = paymentAmt * n;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt; totalInterestd = totalPaymentd - loanAmount;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt; *numberFormatter = [[&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter &lt;/span&gt;setNumberStyle&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSNumberFormatterDecimalStyle&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter &lt;/span&gt;setMaximumFractionDigits&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #4800de;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; *n1 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:paymentAmt];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; *n2 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:totalPaymentd];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; *n3 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:totalInterestd];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt; *paymentAmtString = [numberFormatter &lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n1];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;monthlyPayment&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt; = paymentAmtString;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt; *totalInterestString =[numberFormatter &lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n3];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;totalInterest&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt; = totalInterestString;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt; *totalPaymentString =[numberFormatter &lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n2];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;totalPayment&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt; = totalPaymentString;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)didReceiveMemoryWarning {&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Releases the view if it doesn&#39;t have a superview.&lt;/div&gt;&lt;div style=&quot;color: #490085; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;didReceiveMemoryWarning&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Release any cached data, images, etc that aren&#39;t in use.&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)viewDidUnload {&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Release any retained subviews of the main view.&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// e.g. self.myOutlet = nil;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)dealloc {&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;tbxLoanAmount&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;noOfYears&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;monthlyPayment&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;totalInterest&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;totalPayment&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;span style=&quot;color: #cb00a5;&quot;&gt;super&lt;/span&gt; &lt;span style=&quot;color: #490085;&quot;&gt;dealloc&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;@end&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Explanation&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cb00a5; font-family: Menlo; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;color: #cb00a5; font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;div style=&quot;color: #e00005; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #7e4726;&quot;&gt;#import&amp;nbsp;&lt;/span&gt;&quot;EasyLoanCalculatorViewController.h&quot;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Import the header file which we have just coded.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@implementation&lt;/span&gt;&amp;nbsp;EasyLoanCalculatorViewController&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;tbxLoanAmount;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;annualInterestRate;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;noOfYears;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;monthlyPayment;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;totalInterest;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;@synthesize&lt;/span&gt;&amp;nbsp;totalPayment;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;The synthesize keyword just means generating the getter and setter methods for each of the UIControls which we have declared in the .h file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) bgTouched:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender{&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;annualInterestRate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;resignFirstResponder&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;This is the first Action we have declared earlier in the .h file. Ignore this for now.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;-(&lt;span style=&quot;color: #cb00a5;&quot;&gt;IBAction&lt;/span&gt;) btnCalculate:(&lt;span style=&quot;color: #cb00a5;&quot;&gt;id&lt;/span&gt;) sender{&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Start to implement the btnCalculate Action. Its essentially a method. We name the method btnCalculate that takes an argument of id type and call it sender.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;loanAmount = [&lt;span style=&quot;color: #428288;&quot;&gt;tbxLoanAmount&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;intRate = [&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;years = [&lt;span style=&quot;color: #428288;&quot;&gt;noOfYears&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;doubleValue&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Declare some double variables, and assign the value of the text property of the Textbox. i.e. what the user typed in. Before assigning it, change it to a double type. [tbxLoanAmount.text doubleValue] is essentially tbxLoanAmount.text.ConvertToDouble();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;To generalize, obj.method() in objective c is [obj method];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;r = intRate/&lt;/span&gt;&lt;span style=&quot;color: #4800de;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&amp;nbsp;&lt;/span&gt;// to optimize to handle different payment periods&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;n = years *&amp;nbsp;&lt;span style=&quot;color: #4800de;&quot;&gt;12&lt;/span&gt;;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;rPower =&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;pow&lt;/span&gt;(&lt;span style=&quot;color: #4800de;&quot;&gt;1&lt;/span&gt;+r,n);&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;paymentAmt = loanAmount * r * rPower / (rPower -&amp;nbsp;&lt;span style=&quot;color: #4800de;&quot;&gt;1&lt;/span&gt;);&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;totalPaymentd = paymentAmt * n;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;double&lt;/span&gt;&amp;nbsp;totalInterestd = totalPaymentd - loanAmount;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Above should be reasonably understood unless you have never coded before. Perhaps what is more difficult to understand who be the formula itself. But you worry about it, you can change the formula to what you want, its just a financial formula which can be readily changed to anything formula you want.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #7e1aad; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;*numberFormatter = [[&lt;/span&gt;NSNumberFormatter&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter&amp;nbsp;&lt;/span&gt;setNumberStyle&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSNumberFormatterDecimalStyle&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[numberFormatter&amp;nbsp;&lt;/span&gt;setMaximumFractionDigits&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #4800de;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;*n1 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:paymentAmt];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;*n2 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:totalPaymentd];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;*n3 = [&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSNumber&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;numberWithDouble&lt;/span&gt;:totalInterestd];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt;&amp;nbsp;*paymentAmtString = [numberFormatter&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n1];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;monthlyPayment&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;= paymentAmtString;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt;&amp;nbsp;*totalInterestString =[numberFormatter&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n3];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;totalInterest&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;= totalInterestString;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #7e1aad;&quot;&gt;NSString&lt;/span&gt;&amp;nbsp;*totalPaymentString =[numberFormatter&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;stringFromNumber&lt;/span&gt;:n2];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #428288;&quot;&gt;totalPayment&lt;/span&gt;.&lt;span style=&quot;color: #7e1aad;&quot;&gt;text&lt;/span&gt;&amp;nbsp;= totalPaymentString;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium; white-space: normal;&quot;&gt;Will discuss the above in depth in a separate article. Essentially, its creating the Formatter object to format a double to 2 decimal places. And converting the double values into a string to assign them to the labels.text property. So, out the calculated results to the labels - monthly payment, total interest and total payment.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)didReceiveMemoryWarning {&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Releases the view if it doesn&#39;t have a superview.&lt;/div&gt;&lt;div style=&quot;color: #490085; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;color: #cb00a5;&quot;&gt;super&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;didReceiveMemoryWarning&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Release any cached data, images, etc that aren&#39;t in use.&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)viewDidUnload {&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// Release any retained subviews of the main view.&lt;/div&gt;&lt;div style=&quot;color: #008c00; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;// e.g. self.myOutlet = nil;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Certain events that the program throws. But we do not have to handle them for the moment.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;- (&lt;span style=&quot;color: #cb00a5;&quot;&gt;void&lt;/span&gt;)dealloc {&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;tbxLoanAmount&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;annualInterestRate&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;noOfYears&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;monthlyPayment&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;totalInterest&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #428288; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;[&lt;/span&gt;totalPayment&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490085;&quot;&gt;release&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[&lt;span style=&quot;color: #cb00a5;&quot;&gt;super&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490085;&quot;&gt;dealloc&lt;/span&gt;];&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: medium;&quot;&gt;Called when the program exits, release all my objects used for the UIControls.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #cb00a5; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;@end&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
Await Part 3 where we will link the Outlets to the UIControls and buttons to the Actions.&lt;br /&gt;
And of course, build and run the app.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/3519726546096440380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/implementing-easy-loan-calculator.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/3519726546096440380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/3519726546096440380'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/implementing-easy-loan-calculator.html' title='Outlets and Actions - Easy Loan Calculator Part 2'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvY8guTqKDHyhLnzIOs1RDLo1oLcjFyMkaJr2L1twXQICNrWQJc-1DKsI_vnvTzDpyuH2EyA4bdBwJRiCHmnV6A_x6Y3-7ip3W2njuco_5RJS7RhtbteOBPhb2ukeVdY3mueayMVs98v8/s72-c/Screen+shot+2010-07-09+at+PM+04.37.09.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-6555971605102029652</id><published>2010-07-06T07:42:00.000-07:00</published><updated>2010-07-10T01:25:47.826-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><category scheme="http://www.blogger.com/atom/ns#" term="Outlets and Actions"/><title type='text'>Introduction to Xcode - Easy Loan Calculator Part 1</title><content type='html'>Ok. Finally, let&#39;s get down to writing some decent code. Let&#39;s skip the HelloWorld example and code something that perhaps we can probably get some hits in appstore. See below for the finished product.&lt;br /&gt;
&lt;div&gt;Its a loan calculator, where you fill in the loan amount, the interest rate, and the no. of years of the loan.&lt;/div&gt;&lt;div&gt;The app then calculates the monthly payment that you ought to pay, calculates the total interest paid throughout the loan and the total amount paid.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPL0KZ9hjTjEuOvoJf4FSDaev3n_3VP3TCtzfHMpBTh859nc45EC5kAK_hH8fQFhcZom0VyaL9mFZcBnpz0jLbymKmwcdhYBxihTojw2hRVuPqI0seDXP9u2xaUKJc3rI452nNbec8Rtw/s1600/Screen+shot+2010-07-06+at+PM+10.28.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPL0KZ9hjTjEuOvoJf4FSDaev3n_3VP3TCtzfHMpBTh859nc45EC5kAK_hH8fQFhcZom0VyaL9mFZcBnpz0jLbymKmwcdhYBxihTojw2hRVuPqI0seDXP9u2xaUKJc3rI452nNbec8Rtw/s1600/Screen+shot+2010-07-06+at+PM+10.28.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPL0KZ9hjTjEuOvoJf4FSDaev3n_3VP3TCtzfHMpBTh859nc45EC5kAK_hH8fQFhcZom0VyaL9mFZcBnpz0jLbymKmwcdhYBxihTojw2hRVuPqI0seDXP9u2xaUKJc3rI452nNbec8Rtw/s320/Screen+shot+2010-07-06+at+PM+10.28.20.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
First off, open xcode and create a View based project.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7BaAIHae-ao3Bm8LB5qoBtSADy3i40lhX8m2pCcr_ciIeaix6d1Gh2zbZsoeyJbfioaPKbUyMNqabQXmFZFm03sZDZi4xYnDMcSdJ19SpgV-apOq7JDH0cCYWmk0xrLllNDaz5oJF94E/s1600/Screen+shot+2010-07-06+at+PM+10.34.05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7BaAIHae-ao3Bm8LB5qoBtSADy3i40lhX8m2pCcr_ciIeaix6d1Gh2zbZsoeyJbfioaPKbUyMNqabQXmFZFm03sZDZi4xYnDMcSdJ19SpgV-apOq7JDH0cCYWmk0xrLllNDaz5oJF94E/s320/Screen+shot+2010-07-06+at+PM+10.34.05.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Name it EasyLoanCalculator.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALCdefWMWDWM0nLlAnqU9xx-R66B0QOercnO0cN21-DjRJvB9SMb3BMKNMCqYG_JQQz9M4I3AJuh2UfaymOwV0i7FwGuq-CF-dYayoiqLhpN8KoslxwwrjkjR2V6FPSOIa52XAutmBI8/s1600/Screen+shot+2010-07-06+at+PM+10.35.35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgALCdefWMWDWM0nLlAnqU9xx-R66B0QOercnO0cN21-DjRJvB9SMb3BMKNMCqYG_JQQz9M4I3AJuh2UfaymOwV0i7FwGuq-CF-dYayoiqLhpN8KoslxwwrjkjR2V6FPSOIa52XAutmBI8/s640/Screen+shot+2010-07-06+at+PM+10.35.35.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;You should see the above screen.&lt;br /&gt;
Left pane: shows all your files in a similar fashion to your solution explorer in Visual Studio (VS).&lt;br /&gt;
Right pane shows the individual files selected in the folder and the code in the lower right.&lt;br /&gt;
&lt;br /&gt;
You have a couple of folders. More important ones for now are the &#39;classes&#39; folder and the &#39;resources&#39; folder. The classes folder basically contains your source code files. Resources folder contains your UI files, i.e. Forms in VS.&lt;br /&gt;
&lt;br /&gt;
For this first app, you just to write code in EasyLoanCalculatorViewController.h and&amp;nbsp;EasyLoanCalculatorViewController.m. The .h file is the header file where you write all your declarations. Including declarations for UI Controls like labels, textboxes. The .m file is where all code is.&lt;br /&gt;
&lt;br /&gt;
In &#39;resources&#39;, you see EasyLoanCalculatorViewController.xlb which is your Interface Builder file. You know, the one where you drag and drop UI controls in like for forms in VS. Click on it and Interface Builder (think VS only in design view) opens with a blank iPhone screen.&lt;br /&gt;
&lt;br /&gt;
That&#39;s all for introductions and orientations. Await part 2 for actual programming.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/6555971605102029652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/easy-loan-calculator-part-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6555971605102029652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/6555971605102029652'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/easy-loan-calculator-part-1.html' title='Introduction to Xcode - Easy Loan Calculator Part 1'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPL0KZ9hjTjEuOvoJf4FSDaev3n_3VP3TCtzfHMpBTh859nc45EC5kAK_hH8fQFhcZom0VyaL9mFZcBnpz0jLbymKmwcdhYBxihTojw2hRVuPqI0seDXP9u2xaUKJc3rI452nNbec8Rtw/s72-c/Screen+shot+2010-07-06+at+PM+10.28.20.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-4622598615423469767</id><published>2010-07-04T20:40:00.000-07:00</published><updated>2010-07-09T21:57:51.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><title type='text'>Should I get a apple license?</title><content type='html'>What is the apple license good for? It costs almost S$150 PER year. Now that&#39;s alot of money especially for students. Definitely we should not be just blindly signing up with an account if we do not know the use of it.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s go through the uses of it.&lt;br /&gt;
&lt;br /&gt;
1. It allows you to upload your app on to appstore. Yes, and that&#39;s the main point of it. Do however note that for your app to be downloadable, you need a current valid license. That is to say, if you have submitted an app onto app store, and your apple license has expired, your application WILL NOT be downloadable.&lt;br /&gt;
&lt;br /&gt;
2. It allows you to deploy your code onto a device. i.e. iphone/pad/pod. That&#39;s quite a shocker for me originally. But yea, Apple controls their stuff tightly. &lt;br /&gt;
Sure you can run your apps on the simulator, but you will be restricted to CRUD kind of apps, since you have no access to the accelerometer, GPS and bluetooth functions in the iPhone.&lt;br /&gt;
So if you are looking at using maps, playing balancing games, and chatting via bluetooth, its quite necessary to get the license. &lt;br /&gt;
&lt;br /&gt;
Of coz, teams can use a &#39;Shared&#39; license. But do need that each license can only deploy up to a 100 devices. So do not misuse it by sharing it with too many friends. &lt;br /&gt;
&lt;br /&gt;
Jason</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/4622598615423469767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/should-i-get-apple-license.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4622598615423469767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4622598615423469767'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/should-i-get-apple-license.html' title='Should I get a apple license?'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-5945447670143041455</id><published>2010-07-04T18:24:00.001-07:00</published><updated>2010-07-09T21:57:51.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><title type='text'>First steps to iphone development.</title><content type='html'>&lt;div&gt;First things to iphone/iPad development.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;You need a MAC. I personally think that macbook is good enough for development. But of course if you don&#39;t mind spending some additional dollars, you can get the macbook pro.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There is a good educational offer for students, staffs in schools, and also for parents of students. Go to &lt;u&gt;www.apple.com.sg&lt;/u&gt; where there is currently an offer for a macbook/pro at a discounted price, + free iPod touch, + free printer (S$199). Quite a good offer if you have the budget. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Second thing, once you have the mac. Get a apple developer id at developer.apple.com and you can download the iPhone SDK 4.0. It will come along with it xcode, the IDE for objective c, and Interface Builder, where you design the UI for the iPhone/iPad apps.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note that apple appstore now only restricts apps developed in iPhone SDK 4.0 to be submitted to app store.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Third thing, is BOOKMARK this site! Look out for updates.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/5945447670143041455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/first-steps-to-iphone-development.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/5945447670143041455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/5945447670143041455'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/first-steps-to-iphone-development.html' title='First steps to iphone development.'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4048514796032424265.post-4531910383629245402</id><published>2010-07-04T18:18:00.000-07:00</published><updated>2010-07-09T21:57:51.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginning iPhone development"/><title type='text'>Welcome to easyiphoneapp site!</title><content type='html'>Welcome welcome. To get straight to the point, this blog will record my experiences in learning iphone programming which i hope will be beneficial to those who are interested in iphone programming as well.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There is a serious lack of good iphone programming tutorials and i hope that this blog can prove to contribute EASY to follow, yet DEEP iphone programming content. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I hope my articles will be in plain english, that anyone which some basic programming background can follow and code his or her own app.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So await for more exciting articles, as i chart our iphone development journey!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Jason&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easyiphonedevelopment.blogspot.com/feeds/4531910383629245402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/welcome-to-easyiphoneapp-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4531910383629245402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4048514796032424265/posts/default/4531910383629245402'/><link rel='alternate' type='text/html' href='http://easyiphonedevelopment.blogspot.com/2010/07/welcome-to-easyiphoneapp-site.html' title='Welcome to easyiphoneapp site!'/><author><name>certainan</name><uri>http://www.blogger.com/profile/04038430190354359064</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>