     }
 
     private func friendAtIndex(index: Int) -> User? {
-        //let friend = searchControllerIsActive ? filteredFriends?[safe: index] : friends[safe: index]
+
         let friend = filteredFriends?[safe: index]
         return friend
     }

        super.viewWillAppear(animated)

        navigationController?.setNavigationBarHidden(true, animated: true)

        //(tabBarController as? YepTabBarController)?.setTabBarHidden(true, animated: true)
    }

    override func viewDidAppear(animated: Bool) {


        searchBar.resignFirstResponder()
        searchBar.yep_enableCancelButton()
    }

    // MARK: - Navigation
