-
- Manage memory properly, but resist the urge to use 1retainCount
, it’s a bad idea. Also, it’s better not use
1autorelease. - Draw on the available toolset to improve the quality of the code: Instruments, to find the root cause of bugs; Shark, to improve performance; Clang Static Analyzer, to get the most detailed and comprehensive compiler warnings.
- Try to anticipate every iOS update, because there will always be changes to be made.
- Develop re-entrant code, because every method could be interrupted and the app could get any message in any state: it’s very important to remember this before coding every method. Read the open-sourced iPhone app code available on the net: the idioms and the patterns are very different from the Java/C++ paradigm.
- Beware of using SQLite with flash memory I/O: it will block the GUI.
- Manage memory properly, but resist the urge to use
5 Tips for Better iPhone Development
Leave a reply