Tuesday, January 25, 2011

Objective C and iPhone development

I've started trying to learn how to write iPhone apps, again. I've had one false start (12 months ago) where I tried to get a working app before learning Objective C first and failed miserably. This was partly due to impatience, and partly due to the lack of decent tutorials on the web.

This time, I'm going to learn Objective C first, and I've already found a great tutorial which explains the basic syntax of Objective C and how it differs from C++.

Then I will try to build some basic apps by following the Apple guides at the Apple iOS Developer Center.

To create an iOS app, you must use Apple's XCode, which means you need a Mac, and you need an Apple Developer account which costs $99 (but only if you want to build to an actual device, otherwise you can just use the simulator in XCode to see your app in action).

I've been told by some commercial iOS developers that Interface Builder is great for "standard" apps, but if you want to do something really funky, it's best to ditch IB and learn how to write all the code yourself. The reason for this is that IB does not write out source files for everything that you build - instead it bundles it all into an XML file which is not user editable, so it's impossible to do many customisations that you may be used to doing with NetBeans or Visual Studio.