     override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
         if VKAPIManager.isAuthorized {
             switch RequestManager.sharedInstance.getFriends.state {
+            case .Loading where isRefreshing:
+                return nameSectionTitles.count
             case .Results:
                 return isSearched ? 1 : nameSectionTitles.count
             default:

    func getFriends() {
        RequestManager.sharedInstance.getFriends.performRequest() { success in
            self.friends = DataManager.sharedInstance.friends.array
            
            // Распределяем по секциям
            if RequestManager.sharedInstance.getFriends.state == .Results {

    // Высота каждой строки
    override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
        if VKAPIManager.isAuthorized {
            if RequestManager.sharedInstance.getFriends.state == .Results || RequestManager.sharedInstance.getFriends.state == .Loading && isRefreshing {
                let sectionTitle = nameSectionTitles[indexPath.section]
                let sectionNames = names[sectionTitle]
                
