5 Tips for Better iPhone Development

    1. Manage memory properly, but resist the urge to use 
      1
      retainCount

      , it’s a bad idea. Also, it’s better not use

      1
      autorelease.
    2. 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.
    3. Try to anticipate every iOS update, because there will always be changes to be made.
    4. 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.
    5. Beware of using SQLite with flash memory I/O: it will block the GUI.

Leave a Reply

Your email address will not be published. Required fields are marked *