' Invalid update:invalid number of rows in section xx. The number of rows contained in an existing sections after the update (XXX) ...

Source: Internet
Author: User

' Invalid update:invalid number of rows in section 5. The number of rows contained in a existing section after the update (299) must is equal to the number of rows contained I n that section before the update (276), plus or minus the number of rows inserted or deleted from that section (0 inserted , 0 deleted) and plus or minus the number of rows moved into an or out of (0 moved in, 0 moved out). '

The error I showed above was due to the use of this function to refresh UITableView

-(void) Reloadsections: (nsindexset *) Sections withrowanimation: (uitableviewrowanimation) Animation Ns_available_ios(3_0);

Originally TableView only 4 sets of data, TableView in the later increased to 6 groups of data, but I refresh the data when the refresh of 4 groups, so there is the above error ...

' Invalid update:invalid number of rows in section xx. The number of rows contained in an existing sections after the update (XXX) ...

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.