Question: I have a `UITableView` inside a `UIViewController`. I am trying to make it so when the user click the `BarButtonItem` in the `NavigationBar`, that the tableview goes into editing mode, and thus the user can drag and reorder the cells. 

However, what happens is that I simply press the editing button, and nothing happens. 

This is what I have tried:

For the array declaration:

```
 var tester = ["1", "2", "3"]

```

For the button declaration:

```
   @IBAction func editButtonPressed(sender: AnyObject) {
          self.editing = !self.editing
    }

```

For the various tableview functions:

```
   func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 1
    }

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
    {
        return tester.count

    }

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("editCell", forIndexPath: indexPath) as! EditTableViewCell
        cell.nameHolder?.text = tester[indexPath.row]

        // Configure the cell...

        return cell
    }

    func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) {
        var itemToMove = tester[fromIndexPath.row]
        tester.removeAtIndex(fromIndexPath.row)
        tester.insert(itemToMove, atIndex: toIndexPath.row)

    }

func tableView(tableView: UITableView, canMoveRowAtIndexPath indexPath: NSIndexPath) -> Bool {
        // Return NO if you do not want the item to be re-orderable.
        return true
    }

```

What could be causing this bug?

Answer: 
Above setup works fine. My issue was with DNS records - I added an A record directing `dev.domain.com` to the IP address of the server I'm running the node apps on.
Faced same issue and solved it by creating file from root user:

```
drwxr-xr-x   6 gitlab-runner gitlab-runner  4096 Sep 12 06:56 .
drwxr-xr-x   4 root          root           4096 Sep 12 06:57 ..
-rw-r--r--   1 root          root             11 Sep 12 06:54 .env
-rw-rw-r--   1 gitlab-runner gitlab-runner   599 Sep 12 06:56 app.js

```

If you will delete all files and directories in this folder from `gitlab-runner` with `rm -Rf` command it will delete all files except `.env`

This is just quick workaround may be will be useful.