title: iOS set UISearchBar text programmatically
body: <p>I am trying to set the text of a UISearchBar programmatically but it isn't working for some reason.</p>
  
  <pre><code>[searchController.searchBar setText:@"test"];
  NSLog(@"%@", searchController.searchBar.text);
  </code></pre>
  
  <p>This returns null.</p>