What would you like to know earlier about the iPhone SDK?

I am interested in collecting some tips and tricks while studying the SDK. What I'm looking for is something that you would like you to start that would benefit you.

+5
source share
7 answers
  • Do not use the DOM parser, but the SAX parser. (Problems / memory speed).
  • If you use custom table cells, do not add too many views. (Problems with slow scrolling)
  • If you add views to table cells, such as labels, you can make their background opaque.
  • the generated table view code hits the MVC paradigm. Think about your data model and implement a UITableViewDataSource. In fact.
+2
source

One of the things that I would like to know at the very beginning was how to load data in a non-blocking way, in particular using NSURLConnection. The first versions of my applications suffered a bit because I used things like dataWithContentsOfURL:, which is not a great idea on the iPhone, since you never know what kind of network environment your users will have. To make matters worse, I tested the fiber optic connection at home with iPod touch when a large number of my users used Edge on their iPhones.

+2
source

SQLite, Core Data ( 3.0), FMDatabase (Flying Meat). SQLite. FMDatabase , .

+2

, Google, , , , .

+1

CoreData .

+1

Regarding the speed of viewing the table, see the post by Lauren Brichter http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/

0
source

All Articles