title: Designing iOS SearchBar
body: <p>I want to have a simple SearchBar in ObjectiveC. Using <code>UISearchBar</code> or <code>UISearchBarDelegate</code> is confusing me. I could have used a <code>UITextField</code> but it does not have the look &amp; feel of a search bar.</p>
  
  <p>As in the image attached, I want just the searchbar no <code>UITableView</code> associated with it. The image has a TableView attached but you get the point. Also after someone enters text into the searchBar &amp; pressed "enter" how do I retrieve the text?</p>
  
  <p><img src="https://i.stack.imgur.com/MuCGr.jpg" alt="enter image description here"></p>
  
  <p><strong>UPDATE:</strong> I am aware of these links which discuss the same, but they are more in light with using tables.</p>
  
  <p><a href="http://blog.webscale.co.in/?p=228" rel="nofollow noreferrer">http://blog.webscale.co.in/?p=228</a></p>
  
  <p><a href="http://ved-dimensions.blogspot.com/2009/02/iphone-development-adding-search-bar-in.html" rel="nofollow noreferrer">http://ved-dimensions.blogspot.com/2009/02/iphone-development-adding-search-bar-in.html</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4774233/how-to-implement-search-bar-in-iphone">How to implement search bar in iPhone?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1302962/uisearchbar-sample-code">UISearchBar Sample Code</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4178707/uisearchbar-in-uitableviewcontroller">UISearchBar in UITableViewController?</a></p>