         }
     }
     
+    private func dismissSearchBarKeyboard() {
+        self.searchController?.searchBar.resignFirstResponder()
+    }
+    
+    func tableViewTapHandler(tap: UITapGestureRecognizer) {
+        dismissSearchBarKeyboard()
+    }
+    
     private func initiateContact(contact: Contact, contactMethod: ContactMethod)
     {
         if !contactMethod.initiateContact() {

            // Go to the detail page for the contact
            performSegueWithIdentifier(ContactsListVC.showContactDetailsSequeIdentifier, sender: contact)
        }
    }
    
    // MARK: - Methods

            }
        }
        
        // Override the tap handler on the table view
        let tap = UITapGestureRecognizer(target: self, action: "tableViewTapHandler:")
        tap.delegate = self
        self.tableView.addGestureRecognizer(tap)
        
        // Start loading the contacts
        loadContacts()
    }
