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