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

<channel>
	<title>gadgetfrik &#187; iphone app development</title>
	<atom:link href="http://www.gadgetfrik.com/tag/iphone-app-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gadgetfrik.com</link>
	<description>Gadgets, Technology and everything Geeky</description>
	<lastBuildDate>Thu, 19 Aug 2010 14:05:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPhone 3GS stutters after iOS 4.0.x update?</title>
		<link>http://www.gadgetfrik.com/2010/08/iphone-3gs-stutters-after-ios-4-0-x-updat/</link>
		<comments>http://www.gadgetfrik.com/2010/08/iphone-3gs-stutters-after-ios-4-0-x-updat/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 03:40:19 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=671</guid>
		<description><![CDATA[Nicely done Apple! After updating my iPhone 3GS to iOS 4.0.1 I started seeing quite a number of issues on my iPhone 3GS. Firstly I lost all my contacts &#8211; yes that&#8217;s right! That was so cruel I almost cried . But then I remembered that I had a backup of my numbers on my [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F08%2Fiphone-3gs-stutters-after-ios-4-0-x-updat%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F08%2Fiphone-3gs-stutters-after-ios-4-0-x-updat%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://gadgetfrik.com/wp-content/uploads/2010/08/ManPullingHairOut.gif"><img class="alignright size-full wp-image-672" title="ManPullingHairOut" src="http://gadgetfrik.com/wp-content/uploads/2010/08/ManPullingHairOut.gif" alt="" width="153" height="147" /></a>Nicely done Apple! After updating my iPhone 3GS to iOS 4.0.1 I started seeing quite a number of issues on my iPhone 3GS. Firstly <strong>I lost all my contact</strong>s &#8211; yes that&#8217;s right! That was so cruel I almost cried <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . But then I remembered that I had a backup of my numbers on my Macbook. OK, guess syncing my iPhone to the Macbook at least once a month is worth it after all. But the funny part was that I did not lose my contacts immediately after updating the OS. It was perfectly fine for a couple of days and then suddenly one day the contacts mysteriously disappeared right after a phone call. Weird! I wonder if anyone else has seen this kind of behavior before?</p>
<p><span id="more-671"></span></p>
<p>Ok, soon after I got over the contacts issue, I started noticing that the phone was actually getting &#8220;slow&#8221;. Although slow is not a word that I often associate with Apple products, this is what happened to my until then perfectly normal iPhone 3GS. When I say slow I experienced clumsy response while opening SMS, photos and even running some graphic intensive applications. Was something running in the background? With all the multithreading and all built into the OS, I wonder if there is a process that is constantly running in the background that is hindering the performance of my phone.</p>
<p><a href="http://gadgetfrik.com/wp-content/uploads/2010/08/no-contacts.png"><img class="aligncenter size-medium wp-image-674" title="no contacts" src="http://gadgetfrik.com/wp-content/uploads/2010/08/no-contacts-228x300.png" alt="" width="228" height="300" /></a></p>
<p>Well I&#8217;ve just updated my phone to iOS 4.0.2 today (yes, I was very late in getting this done being preoccupied with my iPad and all) and hopefully all goes well. Firstly I don&#8217;t see the phone stuttering much, and I say that with caution because I want to monitor it for the next couple of days at least. My contacts are still intact (phew!). While still waiting for the iPhone 4 for to be released in the wilderness of Malaysia, I hope my iPhone 3GS recovers soon.</p>
<div class="shr-publisher-671"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2010/08/iphone-3gs-stutters-after-ios-4-0-x-updat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What the hell is iAd?</title>
		<link>http://www.gadgetfrik.com/2010/06/what-the-hell-is-iad/</link>
		<comments>http://www.gadgetfrik.com/2010/06/what-the-hell-is-iad/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 06:47:53 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>
		<category><![CDATA[make money online]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=661</guid>
		<description><![CDATA[I&#8217;m sure by now everyone who has an iPhone 3G or 3GS will be on iOS4 (I hope the 2G and 3G folks don&#8217;t feel left behind). OS4 is really cool for users in many ways. Multitasking, home screen customization, camera zoom, new mail handling capabilities etc etc. So that&#8217;s for the users. What about [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F06%2Fwhat-the-hell-is-iad%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F06%2Fwhat-the-hell-is-iad%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://gadgetfrik.com/wp-content/uploads/2010/06/iad.png"><img class="alignright size-medium wp-image-662" title="iad" src="http://gadgetfrik.com/wp-content/uploads/2010/06/iad-300x71.png" alt="" width="300" height="71" /></a>I&#8217;m sure by now everyone who has an iPhone 3G or 3GS will be on iOS4 (I hope the 2G and 3G folks don&#8217;t feel left behind). OS4 is really cool for users in many ways. Multitasking, home screen customization, camera zoom, new mail handling capabilities etc etc. So that&#8217;s for the users. What about developers? How is iOS4 going to help developers? As Steve Jobs had announced back in April, iAd is going to &#8220;revolutionize&#8221; the way that application developers will be making money from Apple. I will be first introducing my readers to what iAd is all about and then will follow up with a post on how to integrate iAd into your applications.</p>
<p><span id="more-661"></span>Firstly, why iAd and what the hell is it all about? Do you realize the thousands of free apps in the app store have some form of advertising or marketing in built in them? It could either be in the form of some of those ads from admob or the app could be an extension of a business like ebay. Take the example of the ads served by admob. What happens when you click on the app? You get kicked out of the app and land on the advertiser&#8217;s website. So what if you want to get back to your app exactly at the same point that you left? Pretty much impossible if you ask me.</p>
<p>What iAd does is to exactly address this issue. The ad is served in such a way that when the user clicks on the ad, he does not have to leave the app at all. The ad appears right in the application and there is no need to leave the app. So after viewing the ad, the user is able to get back to the exact same point where he clicked the ad. Pretty cool if you ask me. Now users will not have any second thoughts to click an ad if they liked what is was serving.</p>
<p>iAd is supposed to bridge the gap between emotion and interactivity. In Steve Job&#8217;s keynote address he mentions that while internet ads have interactivity, they lack emotion. And while TV ads have emotion, they lack interactivity. iAd will have both interaction and emotion which is very apparent from the example ads that he has shown in his keynote. Let&#8217;s face it &#8211; this is going to revolutionize the ad industry in a big big way. The ads will not be intrusive and will be served to the user only once every 3 minutes. That&#8217;s almost like the frequency of a television ad according to Jobs.</p>
<p>As a developer I&#8217;m certainly excited to try this out. I have already thought of quite a few free applications which I will be launching over the next few weeks. Instead of just relying on the marketing returns, I can certainly hope for some immediate revenue through iAd IF it is successful. I have not seen any live iAd being served on my current apps. Still waiting to see how it will look like in real life although I do have a good feel of it after seeing Steve Jobs&#8217; keynote address.</p>
<p>If you are interested to view this video then I would encourage you to take a look at this youtube video. Its pretty straightforward and gives you an overall idea of this cool concept. Trust me, its 9:38 minutes well spent <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/q7WVt63S49s&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/q7WVt63S49s&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div class="shr-publisher-661"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2010/06/what-the-hell-is-iad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How do you get into the iPhone App business &#8211; part one</title>
		<link>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:18:09 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=552</guid>
		<description><![CDATA[This is a question a lot of people have actually asked me. Apple has done a great job of marketing their app store and according to some recent reports, there are more than 80,000 apps in the app store. A lot of people have made it big by selling their apps on the app store [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-do-you-get-into-the-iphone-app-business-part-one%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-do-you-get-into-the-iphone-app-business-part-one%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a question a lot of people have actually asked me. Apple has done a great job of marketing their app store and according to some recent reports, there are more than 80,000 apps in the app store. A lot of people have made it big by selling their apps on the app store and this has actually fuelled a lot of interest among those who don&#8217;t even own an iPhone. Not only individual developers but even <a href="http://www.appleinsider.com/articles/09/07/15/big_game_publishers_embrace_app_store.html" target="_blank">big game developers have started to embrace the Apple app store</a>. Not exactly surprising considering the fact that some have even suggested that the app store is going to be as huge as the internet. As exaggerated as it may sound, the app is HUGE and it is able to reach to millions of customers each day. The keyword here is &#8211; convenience. It&#8217;s just too easy for any customer to browse the app store, search for some keywords, look at a few apps and decide to download it for a buck! And when there is enough interest the volume of customers who are downloading apps is enough to make a developer rich.<br />
<span id="more-552"></span><br />
So if you are one of the aspiring entrepreneurs aspiring to take the plunge into the world of iPhone apps, let me tell you something &#8211; there are 2 ways of doing this. One is the traditional way &#8211; you get a mac, get an iphone, learn up objective C, learn up iPhone SDK and start writing apps and of course put it up for sale on the app store. Simple enough! The other way, the not so traditional way is to hire an <a href="http://www.twitter.com/rajrmatblogger" target="_blank">iPhone apps developer</a>. Certainly you will need to have a mac at the least since you will need to compile your apps and attach your &#8220;certificate&#8221; that Apple will issue to you when you register as an iPhone developer. But if you think that you even want to eliminate that investment there is a way to do this too! I will be revealing the techniques you can follow based on my interaction with my clients.</p>
<p><strong>The traditional way!</strong></p>
<p>Ok, this is how I started off. Luckily I did have the headstart of knowing objective C. But learning up the SDK is not really the most easiest thing that I have encountered. When I started off sometime in early 2008, there weren&#8217;t many blogs or books or tutorials except for some boring literature from Apple themselves. This is probably the reason why there were few developers around and the app store wasn&#8217;t really &#8220;booming&#8221; like it is now. But somehow I got through it thanks to some great blogs and books that I read.</p>
<p><strong><em>Blogs/Websites that I recommend:</em></strong></p>
<p><a href="http://www.icodeblog.com" target="_blank">icodeblog</a><br />
<a href="http://www.iphonedevsdk.com/forum">iPhone DEV SDK forum</a></p>
<p>Of course there are quite a number of other blogs written by developers including yours truly <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ! I&#8217;ve always had a passion for books and there are a few books which helped me quite a bit on the way too!</p>
<p><strong><em>Books that I recommend:</em></strong></p>
<p><a href="http://www.amazon.com/gp/product/1430224592?ie=UTF8&amp;tag=guinnandgadge-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=1430224592" target="_blank">Beginning iPhone Development 3</a><br />
<a href="http://www.amazon.com/gp/product/0321555457?ie=UTF8&amp;tag=guinnandgadge-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=0321555457" target="_blank">The iPhone Developers Cookbook</a></p>
<p><em><strong>If you need some basics then you can start reading the three part series on how to become an iPhone developer. </strong></em><em><br />
</em><a href="http://www.gadgetfrik.com/2009/03/how-to-become-an-iphone-app-developer-part-one/" target="_blank">How to become an iPhone app developer &#8211; Part one</a><br />
<a href="http://www.gadgetfrik.com/2009/03/how-to-become-an-iphone-app-developer-part-two/" target="_blank">How to become an iPhone app developer &#8211; Part two</a><br />
<a href="http://www.gadgetfrik.com/2009/04/how-to-become-an-iphone-app-developer-part-three/" target="_blank">How to become an iPhone app developer &#8211; Part three</a></p>
<p>These are all great resources to get you started on developing your apps. Of course more than developing apps what is important is getting your market research done. Look at what apps are doing well, why are they doing well etc. Next thing you need to figure out is whether you want to put in your app as a paid app or as a free app. There are pros and cons for both which I will be discussing in the upcoming continuation posts of this series. I hope that you will find the above resources to be helpful for your next app development.</p>
<p>I will be discussing the non traditional way of entering the iPhone App business in my next post. Lookout for it! If you would like to be notified about my future posts, do consider subscribing to my <a href="http://www.gadgetfrik.com/feed/" target="_blank">RSS feed</a>.</p>
<div class="shr-publisher-552"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to play an audio file in your iPhone App?</title>
		<link>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:35:58 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=548</guid>
		<description><![CDATA[Although its been a while since I figured out how to play an audio file in an iPhone app, it still is a pain in the ass every time I try to make it work on a new app. I still keep doing some trial and errors or refer to the numerous blogs out there [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-play-an-audio-file-in-your-iphone-app%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-play-an-audio-file-in-your-iphone-app%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Although its been a while since I figured out how to play an audio file in an iPhone app, it still is a pain in the ass every time I try to make it work on a new app. I still keep doing some trial and errors or refer to the numerous blogs out there helping out fellow iPhone app developers. So I decided to once and for all document the steps that I usually take to play a sound file. Typically the file extensions that are allowed are:</p>
<p>- <strong>.caf</strong><br />
- <strong>.m4a</strong><br />
- <strong>.wav</strong><br />
- <strong>.mp3</strong></p>
<p>In my opinion I find the first 3 easier to work with rather than the popular .mp3 format. For some reason there are audio clips in .mp3 format which don&#8217;t seem to work. Luckily there are so many .mp3 to .wav converters around which you can use. Or the easiest way will be to use iTunes to convert to AAC format which will assign a .m4a extension for the audio clip. Anyway, here are the steps you need to follow to play an audio file in your iPhone app.<br />
<span id="more-548"></span></p>
<p>1. Copy the audio file to your project directory<br />
2. Create a file called SoundEffects.h with the following code:</p>
<p><span style="color: #0000ff;">#import &lt;UIKit/UIKit.h&gt;<br />
#import &lt;AudioToolbox/AudioServices.h&gt;</span></p>
<p><span style="color: #0000ff;">@interface SoundEffect : NSObject {<br />
SystemSoundID soundID;<br />
}<br />
- (id) initWithContentsOfFile:(NSString *)path;<br />
-(void)play;</span></p>
<p><span style="color: #0000ff;">@end</span></p>
<p>3. Create another file called SoundEffects.m and add the following code to it:</p>
<p><span style="color: #0000ff;">#import &#8220;SoundEffect.h&#8221;</span></p>
<p><span style="color: #0000ff;">@implementation SoundEffect</span></p>
<p><span style="color: #0000ff;">- (id) initWithContentsOfFile:(NSString *)path;<br />
{<br />
self = [super init];<br />
if (self != nil) {<br />
NSURL *filePath = [NSURL fileURLWithPath: path isDirectory:NO];</span></p>
<p><span style="color: #0000ff;">AudioServicesCreateSystemSoundID((CFURLRef)filePath, &amp;soundID);<br />
}<br />
return self;<br />
}</span></p>
<p><span style="color: #0000ff;">-(void)play {</span></p>
<p><span style="color: #0000ff;">AudioServicesPlaySystemSound(soundID);<br />
}</span></p>
<p><span style="color: #0000ff;">@end</span></p>
<p>4. Add the following code in your main.m</p>
<p><span style="color: #0000ff;">-(void) awakeFromNib {</span></p>
<p><span style="color: #0000ff;">NSBundle *mainBundle = [NSBundle mainBundle];<br />
soundEffect = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"farSound" ofType:@"caf"]];<br />
}</span></p>
<p>5. At the place where you want to play the sound file, add the following code:<br />
<span style="color: #0000ff;">[soundEffect play];<br />
</span><br />
You will need to manually add the Audio Toolkit framework to your application bundle as well. This is a step that a lot of developers forget to do. If you do not do this, then your project will not compile. Wish Apple could make this much more straightforward rather than going through so many steps and invoking the Audio Toolkit framework. Anyway, hope this will be helpful for your development and as usual do let me know if you face any problems.</p>
<div class="shr-publisher-548"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check if your iPhone App is running on Simulator or Device?</title>
		<link>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 06:16:49 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=543</guid>
		<description><![CDATA[Its been a while since I wrote an actual programming tutorial for iPhone app developers. I&#8217;ve been busy developing a few applications for my clients and since I have completed one major project, I am writing this post to share one of my findings. The app is actually a birthday cake application &#8211; sort of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-check-if-your-iphone-app-is-running-on-simulator-or-device%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-check-if-your-iphone-app-is-running-on-simulator-or-device%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Its been a while since I wrote an actual programming tutorial for iPhone app developers. I&#8217;ve been busy developing a few applications for my clients and since I have completed one major project, I am writing this post to share one of my findings. The app is actually a birthday cake application &#8211; sort of like a virtual birthday cake. The user basically downloads the app to his iphone, enters his name (or the person to be wished), lights up the virtual candles and blows the candles out. Simple right? Simple yet fun concept. The tricky part was to design the algorithm for the blow detection into the mic. Once the algorithm was developed, the next part was testing it out. The testing on simulator and device is totally different for one obvious reason &#8211; you <strong>CANNOT blow</strong> into the simulator. So I needed to keep changing variable values while switching from simulator to device until I found out how silly the method actually was. There is an easier way to do this. Here&#8217;s how I did it.<br />
<span id="more-543"></span><br />
This code&#8217;s inspiration was from <a href="http://iphonedevelopment.blogspot.com/2009/05/device-detection.html" target="_blank">Jeff Lemarche&#8217;s</a> blog post.</p>
<p><span style="color: #0000ff;">NSString *model= [[UIDevice currentDevice] model];<br />
NSString *iPhoneSimulator = @&#8221;iPhone Simulator&#8221;;</span></p>
<p><span style="color: #0000ff;">float k=0.7; //This can be any value<br />
uint detected;</span></p>
<p><span style="color: #0000ff;">if ([model compare:iPhoneSimulator] == NSOrderedSame)<br />
{<br />
// iPhone simulator<br />
detected = MODEL_IPHONE_SIMULATOR;<br />
k=0.0; //This can be any value}</span></p>
<p>Don&#8217;t forget to declare <strong>MODEL_IPHONE_SIMULATOR</strong> as an enum!</p>
<p>Simple right? In the above code example the variable <strong>k</strong> takes the value 0.0 if it detects that the program is running on a simulator. The variable <strong>k</strong> takes the value 0.7 if it detects the program running on a device. Once you have this done, you can use a simple if-then-else statement to continue the rest of your program to respond accordingly. I have tried this out and works perfectly. Don&#8217;t take my word for it &#8211; you can try it out yourself too!</p>
<div class="shr-publisher-543"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Malaysian Tech Blogger is now available on the App Store (MTB)</title>
		<link>http://www.gadgetfrik.com/2009/08/malaysian-tech-blogger-is-now-available-on-the-app-store-mtb/</link>
		<comments>http://www.gadgetfrik.com/2009/08/malaysian-tech-blogger-is-now-available-on-the-app-store-mtb/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 11:59:02 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[General Discussion]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[blog promotion]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=447</guid>
		<description><![CDATA[Apple recently approved my all new iPhone Application &#8211; MTB. This application is an iPhone version of Malaysian Tech Blogger and is intended to reach out to a wider global audience to promote Malaysia. While the app is effectively an RSS reader which gets updated whenever there is a new blog post on Malaysian Tech [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fmalaysian-tech-blogger-is-now-available-on-the-app-store-mtb%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fmalaysian-tech-blogger-is-now-available-on-the-app-store-mtb%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-450" title="MTB" src="http://www.gadgetfrik.com/wp-content/uploads/2009/08/MTB-201x300.jpg" alt="MTB" width="201" height="300" />Apple recently approved my all new iPhone Application &#8211; <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=325801847&amp;mt=8" target="_blank">MTB</a>. This application is an iPhone version of Malaysian Tech Blogger and is intended to reach out to a wider global audience to promote Malaysia. While the app is effectively an RSS reader which gets updated whenever there is a new blog post on Malaysian Tech Blogger it also has different tabs which supports my iPhone App development business and also promotes my iPhone forum &#8211; <a href="http://www.iphonekopitiam.com/forums" target="_blank">iPhone Kopitiam</a>. I am basically using this application as a marketing tool for my blog, business and also my forum. It is incredible how Apple has opened up such a great platform for app developers to not only sell applications but to also use it as the marketing platform for the 21st century.<br />
<span id="more-447"></span><br />
Although the first version of MTB is pretty simple I have plans for enhancements which will be done over the next few weeks. <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=325801847&amp;mt=8" target="_blank">MTB</a> is currently on the app store as a free app and I have received very good response especially from fellow Malaysians. I hope that you will <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=325801847&amp;mt=8" target="_blank">download MTB</a> as well and hope to receive your feedback as well. So if you love gadgets, technology and tips and tricks I&#8217;m sure you will love this application and what better way to keep in touch with it than to download it on your favorite iPhone.</p>
<div class="shr-publisher-447"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/08/malaysian-tech-blogger-is-now-available-on-the-app-store-mtb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How does Apple rate your app?</title>
		<link>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/</link>
		<comments>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 07:37:31 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[General Discussion]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=428</guid>
		<description><![CDATA[I had recently completed yet another app for the app store and happily submitted it on itunesconnect waiting for approval within a week. Well it took about 10 days for the iPhone Developer team to reply and they responded that the app was actually rejected due to incorrect rating. This was definitely quite unexpected for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fhow-does-apple-rate-your-app-rejected-by-apple%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fhow-does-apple-rate-your-app-rejected-by-apple%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I had recently completed yet another app for the app store and happily submitted it on itunesconnect waiting for approval within a week. Well it took about 10 days for the iPhone Developer team to reply and they responded that the app was actually rejected due to incorrect rating. This was definitely quite unexpected for me since this was a fairly simple app and of all the reasons I didn&#8217;t expect it to be rejected due to an incorrect rating. So what is the rating of an app? When you submit an application on itunesconnect, Apple expects you to rate the application like below:<br />
<span id="more-428"></span><br />
<img class="aligncenter size-full wp-image-432" title="rating for iphone application" src="http://www.gadgetfrik.com/wp-content/uploads/2009/08/rating-for-iphone-application2.png" alt="rating for iphone application" width="850" height="480" /></p>
<p>My application had no nudity, no obscenity, no pornography and certainly no offensive materials. So I chose the lowest rating (which is of course the best rating in this case) and sent it to Apple. But I received an email from them about 10 days later which literally made me fall off my chair. Here is what the email said:</p>
<p style="text-align: center;"><img class="size-full wp-image-434 aligncenter" title="apple app rejected email" src="http://www.gadgetfrik.com/wp-content/uploads/2009/08/apple-app-rejected-email.jpg" alt="apple app rejected email" width="835" height="175" /></p>
<p>My iPhone application actually has a couple of tabs which connects to the internet. But these webpages are hardcoded in the app and cannot be changed by the user. There is no way of entering any other webpage as I did not provide a full fledged browser to enter the URL as well. It was a custom made browser with a couple of harmless webpages. I wonder how smart the people at the iPhone Developer team are to come to the conclusion that this application allows unrestricted access to the internet and hence should be rated 17+? Weird!</p>
<p>But then again, I&#8217;m just a small drop in the ocean for the immensely popular app store and I decided to not swim against the current. I updated my app on the &#8220;<strong>Mature/Suggestive Themes</strong>&#8221; column and chose the option &#8220;<strong>frequent/intense</strong>&#8220;. The next thing I know, my app is a 17+ app instead of a 4+ app. Well I guess I can&#8217;t do much other than to send the app for approval and sit tight! Alright Mr. Smarty Pants at the iPhone Developer Program, you got your way. Now let my app get into the app store!</p>
<div class="shr-publisher-428"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to know if a paid app becomes free?</title>
		<link>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/</link>
		<comments>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 06:40:22 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=404</guid>
		<description><![CDATA[How many times have you come across promotions on the App Store when a paid app actually becomes free? Its kind of cool for the developer because he uses it as a marketing tool to get more downloads later on. But how do you actually know when the app becomes free on the app store? [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F07%2Fhow-to-know-if-a-paid-app-becomes-free%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F07%2Fhow-to-know-if-a-paid-app-becomes-free%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-409" title="Picture 1" src="http://www.gadgetfrik.com/wp-content/uploads/2009/07/Picture-12-300x161.png" alt="Picture 1" width="300" height="161" />How many times have you come across promotions on the App Store when a paid app actually becomes free? Its kind of cool for the developer because he uses it as a marketing tool to get more downloads later on. But how do you actually know when the app becomes free on the app store? There is this cool website called <a href="http://freeappalert.com/" target="_blank">Freeappalert</a> which actually notifies you when a paid app becomes free. Its pretty cool and you can take a look at all the apps which just became free on the homepage of the website itself. You could also subscribe to its RSS feed so that you will be notified about any new apps that just became free as well.<br />
<span id="more-404"></span></p>
<p>It definitely seems to be a growing tactic among iPhone developers (I have tried it myself) to make your app free for a limited time. It ensures that there is enough exposure considering the number of apps that are currently on the app store. It also helps to get reviews on the app as more eyes translate to more reviews as well. If you are lucky enough, it could also make it up to the top downloads list which could mean that it would definitely be a candidate for more sales in the future! Go ahead and try it yourself!</p>
<div class="shr-publisher-404"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to start an online forum &#8211; Part Two</title>
		<link>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-two/</link>
		<comments>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-two/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 12:57:09 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[online forum]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=378</guid>
		<description><![CDATA[This post is a continuation of How to start an online forum &#8211; Part One. In this part we will discuss some good hosting packages available and also how to install vBulletin. Finally we will also see what are some of the SEO techniques possible with vBulletin as well. For hosting, I would recommend going [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F06%2Fhow-to-start-an-online-forum-part-two%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F06%2Fhow-to-start-an-online-forum-part-two%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This post is a continuation of <a href="http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-one/" target="_blank">How to start an online forum &#8211; Part One</a>. In this part we will discuss some good hosting packages available and also how to install vBulletin. Finally we will also see what are some of the SEO techniques possible with vBulletin as well.</p>
<p>For hosting, I would recommend going with <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=rajcellv-newgadgetsguru125" target="_blank">Hostgator</a>. Although there are many hosting companies around I have been a fan of Hostgator simply because of the fact that they have an excellent technical support team. Most of my queries have been solved over their online chat link or via email quite fast. They have some good cheap shared hosting packages as low as $4.95 per month and I would advice you to go for the entry level package for a start. Head on to <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=rajcellv-newgadgetsguru125" target="_blank">Hostgator</a> and check out some of their packages available.<br />
<span id="more-378"></span><br />
One you have you domain and hosting setup, the next step would be to purchase <a href="http://www.vbulletin.com/download.php" target="_blank">vBulletin</a> and download it from their website. Once you have downloaded vBulletin you will also have access to the online manual which outlines the steps required to install vBulletin on your website. Typically you will install vBulletin on a folder such as <strong>www.my-domain.com/forums</strong>.</p>
<p><strong>Here are the basic steps:</strong></p>
<p><strong>Step 1:</strong></p>
<p>Download the latest copy of <a href="http://www.vbulletin.com/download.php" target="_blank">vBulletin</a> here.</p>
<p><strong>Step 2:</strong></p>
<p>Go to where you downloaded it, and UNZIP the file. Inside, you will find a file called config.php.new. (Located in upload/includes).</p>
<p><strong>Step 3:</strong></p>
<p>You will need to edit the following information:</p>
<p>$config['Database']['dbname']=&#8217;Insert Database Name Here&#8217;</p>
<p>$config['Database']['technicalemail']=&#8217;Insert Email address to send errors to&#8217;</p>
<p>$config['MasterServer']['servername'] =&#8217;Insert Host MySQL Server Here. Your webhost should have it.&#8217;</p>
<p>$config['MasterServer']['username'] =&#8217;Insert Username here for MySQL Database&#8217;</p>
<p>$config['MasterServer']['password'] =&#8217;Insert Password for MySQL Database.&#8217;</p>
<p>Prior to doing this step, you will need to create a MySQL database from the control panel of hostgator. The steps do do this can be found <a href="http://support.hostgator.com/articles/cpanel/how-do-i-create-a-mysql-database-user-and-then-delete-if-needed" target="_blank">here</a>. Note the database name and username that you have created which will be used to update the values above.</p>
<p><strong>Step 4:</strong></p>
<p>After you are done editing the values above, save the file and rename it to config.php<br />
<strong><br />
Step 5:</strong></p>
<p>There will be a folder called &#8220;upload&#8221; which you will need to upload to your domain using an ftp program such as <a href="http://www.filezilla.com" target="_blank">FileZilla</a>.</p>
<p><strong>Step 6:</strong></p>
<p>Now comes the Install Script. Yay. Enter the full path of the URL like this: www.my-domain.com/forums/install/install.php<br />
<strong><br />
Step 7:</strong></p>
<p>This is the first step of the installation and this is where you will need to enter your customer number.</p>
<p><img class="alignleft size-full wp-image-382" title="vbulletin-installation1" src="http://www.gadgetfrik.com/wp-content/uploads/2009/06/vbulletin-installation1.png" alt="vbulletin-installation1" width="450" height="195" /><br />
<strong><br />
Step 8:</strong></p>
<p>Continue with the remaining screens and your installation should proceed well if you have created the MySQL database correctly as well as the username. Don&#8217;t forget to remove the install script once you finish the installation.</p>
<p>That&#8217;s pretty much all that you need to do to install vBulletin. Once you have your forum up and ready you might want to do some SEO to ensure that you get enough traffic. Some common techniques might be using adwords and twitter. Another good software that you might want to try is <a href="http://www.vbseo.com" target="_blank">vbseo</a>. A lot of forums have seen good results with vbseo and it should be a good investment for your forum as well.</p>
<p>Once you have completed all these steps, you will be on your way to creating your very own community or forum. Have fun like what I am doing with <a href="http://www.iphonekopitiam.com/forums" target="_blank">The iPhone Kopitiam</a>. Good Luck!</p>
<div class="shr-publisher-378"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-two/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to start an online forum &#8211; Part One</title>
		<link>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-one/</link>
		<comments>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-one/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 02:30:19 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[online forum]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=369</guid>
		<description><![CDATA[I&#8217;ve recently been busy working on an all new online forum for Malaysian iPhone developers &#8211; The iPhone Kopitiam. Although there are quite a lot of information available on the internet for iPhone programming, I started this forum for the following purposes: - A virtual hangout joint for Malaysian iPhone developers - Create a closely [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F06%2Fhow-to-start-an-online-forum-part-one%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F06%2Fhow-to-start-an-online-forum-part-one%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve recently been busy working on an all new online forum for Malaysian iPhone developers &#8211; <a href="http://www.iphonekopitiam.com/forums" target="_blank">The iPhone Kopitiam</a>. Although there are quite a lot of information available on the internet for iPhone programming, I started this forum for the following purposes:</p>
<p>- A virtual hangout joint for Malaysian iPhone developers</p>
<p>- Create a closely knit community</p>
<p>- One stop shop for resources</p>
<p>- Share any news related to iPhone in Malaysia</p>
<p>- Any hacks or mods that have been uncoveres</p>
<p>- And finally also share any potential job opportunities</p>
<p>Since this is my first experience in starting an online forum, it was quite a learning experience for me. I had to do quite a lot of research before setting up the online forum and also while setting it up. It wasn&#8217;t as straightforward as wordpress installation and I thought I could share how I did it with my readers.<br />
<span id="more-369"></span><br />
First of all you probably will need to choose between free hosting and paid hosting. There are quite a number of free forum hosting websites but you will not be able to use your own domain. Here are some of them:</p>
<p><a href="http://www.forumotion.com/" target="_blank">Forumotion</a><br />
<a href="http://www.lefora.com/" target="_blank">Lefora</a><br />
<a href="http://www.websitetoolbox.com/message_board/" target="_blank">Website Toolbox</a><br />
<a href="http://www.zetaboards.com/" target="_blank">Zetaboards</a></p>
<p>Note that when you use free forum hosting like the above, you forum will have quite a number of ads and this could be annoying for your users. So I would advice you to go for paid hosting instead. Here are some of the top paid hosting forum software available:</p>
<p><a href="http://www.vbulletin.com" target="_blank">Vbulletin</a> &#8211; $180<br />
<a href="http://www.phpbb.com" target="_blank">PhpBB</a> &#8211; Free (opensource)<br />
<a href="http://simplemachines.org/" target="_blank">Simple Machines</a> &#8211; Free</p>
<p>You could actually evaluate which suits you the best. But after doing some research I found that vBulletin suited my needs as it was pretty easy to use and to setup as well. And the support also made a difference in making my decision. Of course it meant that I had to fork out $180 as initial investment but then which business doesn&#8217;t have an investment? So I went ahead and purchased <a href="http://www.vbulletin.com" target="_blank">vBulletin</a>.</p>
<p>I found a great website which has a comprehensive review of all the top forum softwares available and even demos/screenshots. In fact I used this website to make my final decision. If you would like to check it out, head on to <a href="http://www.forum-software.org/" target="_blank">Forum Software Reviews</a>.</p>
<p>Stay tuned for &#8220;How to start an online forum &#8211; Part two&#8221; where I will discuss hosting packages available and also how to install vBulletin for first time users.</p>
<div class="shr-publisher-369"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/06/how-to-start-an-online-forum-part-one/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
