Optimization of Ios_sn_uitableview

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.