The title says what I am doing and it’s also the title of my current favourite book.
I bought two books. One is for diving into Objective-C and the other one is about the iPhone SDK. It worked out to be a good idea having two books. One for Objective-C basics and the other one more iPhone specific. Although the iPhone book is my favourite book, you need to have basic knowledge about Objective-C to understand what they are doing there.
This book: Beginning iPhone Development is really good. Every chapter contains a Step by Step tutorial on a specific theme. It’s really fun reading and everything is really easy explained.
The second book called Programming in Objective-C is ok but it’s nothing special. It’s not bad though. It’s just a usual book about a programming language. If you consider buying this book better buy this one: “Programming in Objective-C 2.0″. Or a completely different one.
So I started reading the Objective-C book. If you are familiar with ActionScript everything seems different to you. How you declare variables, call functions, handle events and a lot more. Tracing! So simple in ActionScript. And a good example for a comparison:
initWithFormat:@"myNumber: %f", myNumber]);
What is that?! Some things are really strange. And I’m not into it that much that I could say: “Ok, it is a little bit odd but actually it is better because … “. So I just accepted it
Even if it is a little bit painful for me leaving the comfortable ActionScript enviroment it is a lot fun starting with iPhone programming. You simply have access to data you normally don’t have in ActionScript. Think of things like multitouch, accelerometer, GPS location, access to the adressbook of the user and a lot more.
So I started developing a really simple game. I think it is always good if you set yourself a goal to achieve. My goal is to develop a simple football game. The concept is pretty easy. You kick a ball and have to keep in the air. The longer you keep the ball in the air the higher the score. The score is to be saved in a database later.
This is the current state. Unfortunately it doesn’t run that smooth on the iPhone. The difference between the X-Code-Simulator and the runtime on the iPhone is pretty big. I guess I should do the movement with openGL. Another language I don’t know. But the book is already ordered Have a look for yourself: