Tuesday, February 24, 2009 at 5:15 PM | 0 comments  
I just got through a relatively short chapter on touches/taps/gestures. The IPhone can recognize up to 5 fingers touching the screen at once and can figure out how many consecutive taps one finger is doing. You can also program the IPhone to recognize certain gestures. In one of the tutorials I was able to get the IPhone to recognize a checkmark gesture. The code is uploaded.




Posted by JP
Sunday, February 22, 2009 at 12:07 PM | 0 comments  
I finally got to start doing animation! There are two main ways to do animation. The first is using Quartz and the second is with OpenGL-ES. Quartz is really simple to use and with it you can easily create 2-D animations. OpenGL-ES is for 2-D and 3-D animations and is much more powerful and much more difficult to use than Quartz. It takes advantage of various hardware acceleration mechanisms to draw things efficiently unlike Quartz. For this tutorial I made a paint application using both Quartz and OpenGL-ES. Using Quartz was much simpler for this application. Without prior knowledge of how OpenGL works, beginners might want to stick with Quartz for their 2-D creations.
Posted by JP
I finished the chapter on data persistence. Being able to save application data is very important for applications that require things to be saved between different runs of the application. There are three main ways of persisting data; property lists, archiving, and SQLite3.

Property lists are really easy and convenient but only work for serializable objects that can be put into a dictionary or array. You can't put custom classes into property lists though.

Archiving allows you to write any objects to files as long as you specify how it will be done by supporting certain protocols.

SQLite3 is the IPhone's version of SQL. It is for storing large amounts of data in a database. This requires knowledge of the SQL language. I didn't do much with this because this book doesn't talk too much about SQL.
Posted by JP
Tuesday, February 17, 2009 at 2:34 PM | 0 comments  
Here's a continuation of my last summary to help tie things together into a curriculum idea.

2. Model View Controller (continued)
  • Navigation Bar --> tables, Nav application
  • Auto rotation --> show how to use this
3. Data Persistence
  • Settings --> AppSettings
  • Property Lists
  • Archiving
  • SQLite3
Posted by JP
Today I finished a tutorial on application settings. This tutorial was a short simple tutorial to show how the IPhone can use something known as a settings bundle to keep track of application preferences. In the SDK you do this by editing a plist file which is a cool file specifically formatted for being read like this. It's really easy to use. The end result is your application having it's own "settings" in the main settings section of your IPhone. I'll upload the source code shortly.
Posted by JP
Wednesday, February 11, 2009 at 11:57 PM | 0 comments  
This was a tough chapter. There's so much stuff in here for navigation bars. They work somewhat similar to a tab bar in that it manages different views. However, a navigation bar works as a stack so it has a root view and then when you navigate to a different view, that view gets pushed onto the stack. Navigation bars work hand in hand with tables. Each row in a table will generally represent a link to another view. I uploaded the source code to my navigation tutorial application.
Posted by JP
Sunday, February 8, 2009 at 10:25 PM | 0 comments  
I just got done with Chapter 8 from Beginning IPhone Development which talked about table views. Table views let you organize things in hierarchical fashion for easy searching. By the end of the chapter I'd created something similar to a contact list or song list where you can search or index through a bunch of items. I'll upload the source code and post some pictures when I get a chance.
Posted by JP