IOS UITableViewCell Optimization

Source: Internet
Author: User

IOS UITableViewCell Optimization

0.Cell must be reused
1. Set the cell's opaque to No
2. Multiple-style cell write-apart
3. Try to initialize the UI as early as possible do not create and delete every time you update the page
4. As high as possible, if the dynamic calculation height try not to use the uikit of things to calculate

5. If you are loading directly with IB, try to use

-(void) registernib: (uinib *) nib Forcellreuseidentifier: (nsstring *) identifier Ns_ Available_ios(5_0);

-----------------------------------------Knowledge Supplement---------------------------------------------


Alpha supports animation (animation), hidden and opaque do not support animations
Hidden compared to the alpha overhead, alpha=0 transparent overhead, if the effect of the same, with hidden good point.
The view does not receive events when Hideen, but alpha is 0 o'clock view to receive events.
When the view is set to a transparent background, it is common to set opaque to no, which can reduce overhead and memory.

IOS UITableViewCell Optimization

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.