Effective IPhone programming techniques [closed]
While creating an IPhone application I always care about techniques which greatly effect working of an application on one side and understanding of code on the other. For instance, I prefer creating Singleton to manage data, which separates Data from View. Similarly, use of Asynchronous images and memory management are few techniques which I always use whenever I work with some web service or any database.
What I be开发者_如何学编程lieve is, there are a lot many effective programing techniques which programmers follow to make their application best presented before the client. Which techniques I should keep in perspective while creating an IPhone application which makes use of web data or local data? Are their concepts similar to Singleton which I should consider using in my application?Thanks for letting out few of your secrets :)
I would like to add about the delegate pattern here. Its very helpful when you are waiting for async notifications.
A personal favourite of mine is to control and display gracefully any errors that occur in serving web data. For example if an application uses Async image loading (as you said) have a time out with an Image failed to load picture.
This presents a much nicer interface than a spinning wheel and lets the user know that its not working without them waiting for ages for something to happen.
If you want you can add a try again button to the image placeholder as well.
精彩评论