{"id":13685344,"url":"https://github.com/shusta/ReorderingTableViewController","last_synced_at":"2025-05-01T04:30:36.990Z","repository":{"id":217152141,"uuid":"1544230","full_name":"shusta/ReorderingTableViewController","owner":"shusta","description":"Drag and drop UITableView rows.","archived":false,"fork":false,"pushed_at":"2015-05-15T14:51:14.000Z","size":622,"stargazers_count":188,"open_issues_count":11,"forks_count":34,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-12T07:37:25.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shusta.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-03-30T01:15:26.000Z","updated_at":"2024-06-12T08:44:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"87e6e5f9-5a1a-417f-9dcb-65392869edad","html_url":"https://github.com/shusta/ReorderingTableViewController","commit_stats":null,"previous_names":["shusta/reorderingtableviewcontroller"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shusta%2FReorderingTableViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shusta%2FReorderingTableViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shusta%2FReorderingTableViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shusta%2FReorderingTableViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shusta","download_url":"https://codeload.github.com/shusta/ReorderingTableViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251824046,"owners_count":21649792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T14:00:49.182Z","updated_at":"2025-05-01T04:30:36.984Z","avatar_url":"https://github.com/shusta.png","language":"Objective-C","readme":"ATSDragToReorderTableViewController\nDaniel Shusta\nAcacia Tree Software\n\u003cmy first name\u003e @ acaciatreesoftware.com\n\n\nATSDragToReorderTableViewController is a UITableViewController subclass that adds drag and drop reordering to a UITableView. \n\nI developed it as part of Acacia Tree Software’s SousChef for iPhone and it has since become an integral part of Ita for sister company Nice Mohawk. This is definitely a eating-our-own-dogfood piece of code.\n\nA UITableView with this functionality can be reordered without switching into edit mode. It’s simply a press and hold to start, then drag the cell to reorder. The UITableView automatically scrolls when approaching the top or bottom of the UITableView.\n\n=====\n\nIt is straightforward to incorporate into your app. \n\n\t1.  Instead of subclassing from UITableViewController, you subclass from ATSDragToReorderTableViewController. \n\n\t2.  Then implement the UITableViewDataSource method -tableView:moveRowAtIndexPath:toIndexPath: . You might have already done this.\n\n\t3.\tIf you want to better support iOS \u003credacted\u003e, you'll want to check out -cellIdenticalToCellAtIndexPath:forDragTableViewController: I am very annoyed about this.\n\nThe included sample app includes these changes as a demonstration. Further details are described at the top of the ATSDragToReorderTableViewController.h .\n\nFor those curious, ATSDragToReorderTableViewController.m includes a fairly comprehensive overview of the implementation at the top and is ridiculously over-commented throughout.\n\n=====\n\nATSDragToReorderTableViewController relies on UIGestureRecognizer and uses block-based animations throughout. It now has full support for ARC and I'm too lazy to continue to support non-ARC projects so this will be iOS 5+ only from now on.\n\nLicensing info is at the very top of the files as well as in a file called LICENSE.\n\n=====\n\nI am trying to be reserved here but I am pretty excited about this and hope you find this exciting too.\n\nCheers,\nDaniel Shusta\n","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshusta%2FReorderingTableViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshusta%2FReorderingTableViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshusta%2FReorderingTableViewController/lists"}