iOS Development learning-How to optimize the use of TableView

Source: Internet
Author: User

1. Reusing cells

2. The views in the cell are used as opaque as possible, using less animation in the cell

3. Image loading using asynchronous loading

4, the slide does not load the picture, stops the slide when starts to load

5. The contents of the cell can be drawn yourself within the DrawRect method in the Custom cell class

6, if not necessary, reduce reloaddata all cells, only reloadrowatindexpaths

7, if the cell is dynamic row height, calculate the height after the cache

8, cell height fixed, directly using Cell.rowheight set height

iOS Development learning-How to optimize the use of TableView

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.