Coding for the iphone

Associate
Joined
11 Mar 2009
Posts
257
Location
scotland
Hi,

Anyone got any experience with coding apps for the iphone? How easy/hard is it?

I've got almost no knowledge of any programming language other than php / JS. (I'm very good with php, but then it is quite an easy language). So i recon i could get the basics of objective c quite fast. Would be completely lost if i ever wanted to do something fancy and in 3d though, i think...
 
Soldato
Joined
13 Jan 2003
Posts
21,456
The iPhone is relatively simple however like all programming it depends on the application. As you'd expect there's a lot of common ground between coding for OSX and the iPhone.

Programming in Objective-C 2.0, Kochan
This covers Objective-C with a little Xcode and Mac OS. A good base reference for all things Objective-C (which means Apple stuff). It will underpin the next books, teach you and be a reference if you're used to C/C++ etc.

Beginning iPhone Development, Mark & LaMarche
Fast becoming the defacto favourite beginner's book. It's late to the market and they've got things right rather than rush things. I got mine today after using a google in-book. Ok - this is a easy entry book. It covers the basics of using Xcode etc and shows the basics of building applications using the bits and bobs available.
This is well worth it.

The iPhone Developer's Cookbook, Erica Sadun
This is an odd one. It's not well laid out nor is it an easy book but there's some interesting points and ideas. This will teach you some naughty stuff that Apple may not like. Does not tell you much about programming Cocoa, Xcode or Interface Builder (such as using multiple xib view controllers etc).
The information is in there... just buried. Once you're happy with developing this does cover more ideas beyond but it's not really a "my first iPhone" book (especially if you've not programmed Cocoa/Objective-C before).

Cocoa Programming for Mac OS X, Aaron Hillegass (Mac programming but it's very useful)
This is the defacto beginner's guide to Cocoa. Well written and very easy to follow - teaches a little Objective-C and also covers Xcode & Interface Builder.

You'll need the iPhone SDK from Apple's developer pages (free to sign up) and to test on the iPhone itself and distribute you will need to enroll (yearly fee).

The SDK comes with a simulator however, from experience, it allows quick development but isn't the same as the iPhone itself. The simulator runs native to OSX so it allows you to get away with using libraries and methods that aren't supported on the iPhone. Unsurprisingly the iPhone has a smaller subset (but still powerful) of libraries.

The key is to get your head around the view, view controller aspects. Once you've done that it's child's play.

http://forums.overclockers.co.uk/showthread.php?t=18047355
 
Last edited:
Top Bottom