If you are really serious about this and ready to take some time to learn how to program in Cocoa, then how I would do it would be a combination of reading all that Apple has to offer along with a couple of good books both for reference and for more conceptual big picture / getting into Cocoa thinking material.
If you just want to try hacking something together that works, you will probably be best off using a combination of Apple example code and a lot of questions on different forums when you get stuck.
The books I would recommend would be Objective-C Programming, Stephen Kochan and Cocoa Mac OS X Programming from Aaron Hillegass . The former is a good introduction to Objective-C, and the latter is largely a Cocoa book. This is not a specific book for the iPhone, but pretty much everything in it (especially design concepts and design patterns) still applies. Keep in mind that you will not have access to the garbage collector on the iPhone. You must also be sure to read Apple on your own Introduction to the Objective-C 2.0 programming language .
In order for the real code to be viewed and adapted to your own needs, itβs hard to find anything better than Appleβs own code sample library.
You can also try these two forums for any SDK issues you may have, as well as, of course, Stack for more general material that does not fall under the NDA.
source share