Transitioning from Android to iOS4
Figure 1. XCode Compiler of iOS
In some ways trying to learn to code for the iPhone after coding for the Android Phone may be more difficult than simply programming the iPhone from scratch. On the other hand, there are enough similarities between coding for both platforms that your knowledge of Android programming can be leveraged to programming for the iPhone. So there is a balance between letting go of your assumptions of how things should work using Objective C and iOS4 and transferring the concepts that you have learned from programming the Android Phone to programming the iPhone. I do not plan to write a tutorial on iPhone programming. Instead, I hope to point out how programming in Objective C differs in programming in Java and how programming for both devices use similar architectural constructs. This is a work in progress!
Differences:
Similarities:
Hope you are still having fun!
JAL
Misc. Errors:
1) In iOS we can add a framework by right clicking on the Frameworks folder and choosing Add. WARNING: If you drag a framework to the project it may be copied to the project folder resulting in the error:
missing required architecture i386 in file
This in turn will lead to a link error with missing symbols to the added framework.
2) Xcode uses Clang to analyze code (Build and Analyze) and Instruments (Run with Performance Tool) to find leaks. For instance, the default template for iPhone View leaks memory on rotation when tested on an iPad2 device when rotation is enabled with the addition of a single line of code. This suggest a leak in the iPhone "simulator" on the iPad2.