iOS tableview deleting rows

Source: Internet
Author: User

Before IOS6, TableView is the primary control for functions such as displaying data. In the development of such as shopping cart function Delete Line is a very important function, the following begins to introduce

  

Before the online demo, are a section of the example, does not meet the needs of my development, here I based on the predecessor of the demo wrote a new version, you can do a multi-line delete operation

 

  

Here I put the demo code directly. The false data I write here is to put two arrays into a large array, which is more realistic because it is generally not possible to operate on only one section or each section to create a separate array for it.

I use the large arr to control the number of partitions, and then show the number of rows based on the number of small arr.

The effect of the above code is two partitions, you can delete the operation

iOS tableview deleting rows

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.