If you’re still debating getting the new iPhone SDK, now would be a good time to pass along some of challenges I had while operating on a iphone app. Read this now and you’ll save some headaches when plowing into the SDK.
Don’t plan on reusing much of your prior code. If you’re using a pennant MVC outline, which is most likely if you’re using Cocoa, then most of the use will necessitate major rewriting.
From my view, your models and the usage paradigm that look after them can be reused, devoid of much more work. On the other hand, the multi-touch border precludes the need for your existing snippets and controllers.
As an example, the code I used to download the data from a feed api using NSURLConnection, parse the XML into an NSDictionary and store it in a sorted NSArray was essentially copied and lacking calls from the desktop treatment. The director and view code was all new.
There are some very tight confines on recall running. You’re given in the order of 64 MB of space to work with. And that’s half of what’s allocated. If you go past that, it shuts you down abruptly. That tied with the fact that there isn’t any swap space where unused code can go to rest, makes for some pattern decisions that you haven’t had to consider in the desktop environment. (more…)