views:

62

answers:

4

I know this is kind of a vague question, but does anyone know how to get rid of choppy scrolling on a tableview?

Thanks

+2  A: 

I suggest reading up on the subject but a few main things are:

  1. Don't do heavy calculations in your GetCell function (it is calculated several times per second as each row appears.
  2. Make sure as many elements in the cell are "opaque" as possible. Read about red/green transparency checking with instruments / simulator. Transparent areas require compositing which causes a performance hit with the hardware (especially on iPhone/3G).
  3. Make sure you are using a constant cell identifier so dequeueReusableCellWithIdentifier isn't creating a new cell every time one is needed.
ifwdev
+2  A: 

Have you tried Apple's suggestions for Cells and Table-View Performance yet?

You might also want to look at the TableViewSuite sample code for different techniques for creating fast scrolling table views.

Robot K
+1  A: 

Try Atebit's fast scrolling table cells:

http://news.atebits.com/post/197580827/fast-scrolling-in-tweetie-with-uitableview

The idea is that instead of a deep hierarchy of subviews you draw everything flat to the content view so that rendering doesn't have to composite lots of transparency.

Jasarien
+1  A: 

Another possible problem may be background web calls - if you are using asynchronous calls to servers, try moving them into background threads. That can really improve UI performance.

Kendall Helmstetter Gelner