Recent interviews have been asked this question to summarize today.
1. Calculate and cache the height (layout) in advance, because Heightforrowatindexpath: is the most frequently called method.
2. Asynchronous drawing, encounter complex interface, encounter performance bottleneck, may be a breach.
3. Load on demand when sliding, this is useful when a large number of pictures are displayed and the network is loaded.
4. Try to use less or no transparent layers.
5. Reduce the number of subviews.
6. Use AddView to add view dynamically to the cell, add it when initialized, and control whether it is displayed with hide.
7. Avoid using graphic effects. The more graphic effects you have on the Cell, the slower the rendering process will be.
8. Re-use the Cell appropriately.
9. Lazy Loading child views.
10. Load the picture asynchronously.
Optimization of Ios_sn_uitableview