title: Get searchbar text in swift
body: <p>I want to use search bar in my app. But I couldn't find any tutorial for this. </p>
  
  <p>My question is simple: How can I get search bar text when user preses to enter button ?</p>
  
  <p>I need something like this in my view controller:</p>
  
  <pre><code>override func userPressedToEnter(text: String) {
       println("User entered: \(text)")
  }
  </code></pre>
  
  <p>How can I do this in swift ?</p>