Latest 0.2.0
Homepage https://github.com/LeoMobileDeveloper/DraggableTableView
License MIT
Platforms ios 8.0
Authors

Version Platform
Language
License

DraggableTableView is a UITableView extesntion to make tableview draggable by long press.

Features

  • [x] Default

DraggableTableView

  • [x] Special cell fixed

DraggableTableView

  • [x] Only subview in cell is dragable

DraggableTableView

Require

  • iOS 8
  • Swift 3

Install

CocoaPod

pod "DraggableTableView"

Useage

Enable dragable and set delegate

self.tableView.dragable = true
self.tableView.dragableDelegate = self

In delegate method,

 //Required, manage data source here
 func tableView(tableView: UITableView, dragCellFrom fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) 

 //Optional, decide if a cell can be draged from
 func tableView(tableView: UITableView, canDragCellTo indexPath: NSIndexPath) -> Bool 

 //Optional, decide if a cell can be draged to
 func tableView(tableView: UITableView, canDragCellFrom indexPath: NSIndexPath, withTouchPoint point: CGPoint) 

Author

Leo, [email protected]

License

DraggableTableView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DraggableTableView",
    "version": "0.2.0",
    "summary": "Extension for the UITableView that allows a user to move cells with long press and drop",
    "description": "Extension for the UITableView that allows a user to move cells with long press and drop,it is a "Drop to use" library.",
    "homepage": "https://github.com/LeoMobileDeveloper/DraggableTableView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Leo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeoMobileDeveloper/DraggableTableView.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This