Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 735969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:33:04+00:00 2026-05-14T07:33:04+00:00

Apple says about the UITableView -beginUpdates -endUpdates block: If you do not make the

  • 0

Apple says about the UITableView -beginUpdates -endUpdates block:

If you do not make the insertion, deletion, and selection calls inside this block, table attributes such as row count might become invalid.

I’d like to know what exactly -beginUpdates does. Why do table attributes such as row count might become invalid when I don’t put my insert/delete code inside this block?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:33:05+00:00Added an answer on May 14, 2026 at 7:33 am

    The rows in a table are changed in two ways: (1) The underlying data changes and the table has to reload to display the new data. (2) The user edits the table directly by inserting, deleting or dragging. The block handles (2).

    The beginUpdates to endUpdates block tells the table that it is being directly edited and that it should not rely on the values returned by its datasource. Without the block, the table calls numberOfRowsInSection as normal to find out how many rows it should have. If the user has just inserted or deleted a row, it will receive and incorrect value because the data model might not yet been updated. The datasource will not return the correct value until after the table displays the change and the delegate writes to the data.

    You can think of the block as a kind of temporary decoupling of the table from its data source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In apple's document, apple says: Important: Instances of ABAddressBookRef can not be used by
Apple really had bad documentation about how the provider connects and communicates to their
I know this question looks like a dupe: I checked and it's not In
As seen in this page: http://developer.apple.com/ios/manage/distribution/index.action , under the Create and download your iOS
Apple in iTunes Connect Developer Guide says: App Name Expiry Once you have created
From Apple's View Controller Programming Guide / Managing Memory Efficiently; didReceiveMemoryWarning Use this method
As the question says I am trying the following (does not compile): object O
Apple says, 11.2 Apps utilizing a system other than the In App Purchase API
Apple says, NSURL is developed using RFC 1738 (and some others). Now RFC 1738
I have read from some article that say's Apple doesn't approve the application which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.