title: How to force UISearchBar text into uppercase in iOS
body: <p>I am trying to force <code>UISearchBar</code> textfield to uppercase when the user is typing.</p>
  
  <p>This is what I have tried, however it's not working.</p>
  
  <pre><code>  UISearchBar *filterSearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(10.0, 170.0, 280.0, 40.0)];
    filterSearchBar.delegate = self;
    filterSearchBar.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; 
    [allBackGroundView addSubview:filterSearchBar];
  </code></pre>