             tableView.deselectRowAtIndexPath(indexPath, animated: true)
         }
 
-        searchController?.active = false
+        //searchController?.active = false
+        //searchController?.resignFirstResponder()
 
         guard let section = Section(rawValue: indexPath.section) else {
             return

    private var searchControllerIsActive: Bool {
        return searchController?.active ?? false
    }

    private let keyboardMan = KeyboardMan()
    private var normalContactsTableViewContentInsetBottom: CGFloat?

        }
    }
    
//    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
