         }
     }
     
-    override func viewWillAppear(animated: Bool) {
-        super.viewWillAppear(animated)
-    }
+//    override func viewWillAppear(animated: Bool) {
+//        super.viewWillAppear(animated)
+//
+//        if searchControllerWasActive {
+//            searchController?.active = true
+//        }
+//    }
+//
+//    override func viewWillDisappear(animated: Bool) {
+//        super.viewWillDisappear(animated)
+//
+//        searchControllerWasActive = searchControllerIsActive
+//
+//        searchController?.active = false
+//    }
 }
 
 // MARK: - UITableViewDataSource, UITableViewDelegate

            tableView.deselectRowAtIndexPath(indexPath, animated: true)
        }

        searchController?.active = false

        guard let section = Section(rawValue: indexPath.section) else {
            return

        #if DEBUG
            //view.addSubview(contactsFPSLabel)
        #endif

        self.definesPresentationContext = true
    }

    // MARK: Actions
