             originalNavigationControllerDelegate = navigationController?.delegate
 
             navigationController?.delegate = contactsSearchTransition
-        }
-
-        func recoverNavigationDelegate() {
-            if let originalNavigationControllerDelegate = originalNavigationControllerDelegate {
-                navigationController?.delegate = originalNavigationControllerDelegate
-            }
         }
 
         switch identifier {


    // MARK: Navigation

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

        guard let identifier = segue.identifier else {

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        recoverNavigationDelegate()
    }

    // MARK: Actions
