Jan 11 2009
∞
Notes on iPhone development
- The language is Objective C 2.0 and the framework is Cocoa Touch.
- Only one application can be run at one time on the iPhone. If your application isn’t running, it cannot do anything.
- Your application has one window and this is fixed at the size of the iPhone screen.
- Your application has a sandbox. This is the only place your application can read and write files.
- It is crucial for your application to be as quick and snappy as possible. Starting up and shutting down your application must be very fast, this includes loading data and saving data (when exiting, applications have a time limit of 5 seconds before they’re killed automatically). Don’t lose data when shutting applications down.
- The iPhone’s resolution in 480 x 320px.
- Usually about half of the 128mb RAM the iPhone has is available to your application.
- Cocoa Touch will let applications know if they’re running out of memory. It’s the application’s responsibility to free up memory, otherwise they’re going to be killed.
- Cocoa Touch doesn’t support garbage collection.