             }
         }
 
+        keyboardMan.animateWhenKeyboardAppear = { [weak self] _, keyboardHeight, _ in
+            println("self?.contactsTableView.contentInset.bottom: \(self?.contactsTableView.contentInset.bottom)")
+            self?.normalContactsTableViewContentInsetBottom = self?.contactsTableView.contentInset.bottom
+            self?.contactsTableView.contentInset.bottom = keyboardHeight
+        }
+
+        keyboardMan.animateWhenKeyboardDisappear = { [weak self] _ in
+            if let bottom = self?.normalContactsTableViewContentInsetBottom {
+                self?.contactsTableView.contentInset.bottom = bottom
+            }
+        }
+
         #if DEBUG
-//            view.addSubview(contactsFPSLabel)
+            //view.addSubview(contactsFPSLabel)
         #endif
     }
 

import UIKit
import RealmSwift
import Ruler

class ContactsViewController: BaseViewController {


        return searchController?.active ?? false
    }

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

    private let cellIdentifier = "ContactsCell"

    private lazy var friends = normalFriends()
