1. PrefaceSwift does not introduce much in this respect, presumably everyone already knows. It's been one months before Swift was released. In my spare time, I used swift to implement some of the common operations of UITableView. Basic can be used, today in their own blog to share to everyone.2. Initialization of the program entryInitialize the program entry, first to our Viewcontroller package a navigation controller! The rep is not nil, is it? Denotes nil (! And? The compiler detects according to different identities)3. New member variable, initialize UITableViewvar tableview:uitableview?var items:nsmutablearray?var Leftbtn:uibutton?4. Add the Edit and add buttons to the navigation controller 5. Add a new Tableviewcell6.Edit button Function Delete and sort7. Implement UITableView Data source method and proxy method7.1. How many lines are there in total ?7.2. Contents of each line7.3. Allow open Edit State7.4. Delete a row of cells7.5. Allow sliding Delete7.6. Allow a row to be moved (sort)7.7. Implementing Sorting 7.8. Click on a row
Clear Saup
Source: http://www.cnblogs.com/qingche/
This article is copyright to the author and the blog Park is shared, welcome reprint, but must retain this paragraph statement, and in the article page obvious location to give the original text connection.