     super.viewWillDisappear(animated)
     settingsSavedCallback(serverAddressTextField.text)
   }
-}+  
+  func textFieldShouldReturn(textField: UITextField) -> Bool {
+    textField.resignFirstResponder()
+    return true
+  }
+}


typealias ServerAddressChangedCallback = (String?) -> ()

class SettingsViewController: UIViewController {
  let settingsSavedCallback: ServerAddressChangedCallback
  let serverAddressTextField: UITextField
  

      "This should be the address of your computer running Ableton Live (with LiveOSC installed.) " +
      "For instructions on how to set up Ableton for use with SceneLauncher, " +
      "please see http://codeflo.ws/SceneLauncher"
    helpText.font = UIFont(name: UIConstants.fontName, size: 13)
    view.addSubview(helpText)
    
    let margin = CGFloat(10)
