UITableViewCells with many subqueries is slowly displayed on the iPhone due to the way the phone displays each layer.
Read this: http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/
The information provided in the above message is still extremely relevant and useful, but the example of loading the project does not work (as of December 8, 2011). However, Apple, having documentation on the desktop view, had examples of flat table cells for quick scrolling for a log while now. Check this out: http://developer.apple.com/library/ios/#samplecode/AdvancedTableViewCells/Introduction/Intro.html
Highlights:
- iPhone doesn't handle Alpha very fast.
- Subviews must have the
opaque property set to YES - If possible, draw your objects in one opaque view for better performance.
Obviously, the cells with the controls you need to manipulate cannot be flattened, so I think you just need to try to get away, making sure that the hidden objects of your camera are opaque.
The last thing I would suggest is not to allocate new objects every time a cell is requested - this is certainly a bottleneck in your code. You must use reusable cells and subclass the cell so that its fields are highlighted and added as sub-items only when they are first created. Subsequent calls should deactivate the cell and use prepareForReuse to clear the old values.
source share