IOS performance optimization issues with TableView

Source: Internet
Author: User

1.cell has too many sub-views, which adds to the burden of the cell

2. When loading the picture, choose asynchronous load, loads the cable in the sub-line

3. Avoid cell re-layout. cell layout fills are time-consuming and generally well laid out when created.

4. Do not use Clearcolor, no background color, and do not set the opacity to 0

5.layoutSubviews This method will be called in the cell, scrolling table, and so on, and the call is very frequent, so this method try not to write time-consuming operation, if possible, the custom cell as far as possible to use automatic layout

The Runloop mode of 6.tableView is set to the default, so do not use nsrunloopcommonmodes, because if the cell internal loading network has time-consuming operation, it will become very slow

IOS performance optimization issues with 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.