title: Unable to set UITextField's borderStyle to None in UISearchBar
body: <p>I'm trying to remove the <code>textborderstyle</code> of the <code>UITextField</code> in a <code>UISearchBar</code>. I know that I'm getting reference to the correct object, as I'm able to change the <code>TextBorderStyle</code> to <code>RoundedRect</code> and see a visible change.</p>
  
  <p>I've tried subclassing UISearchBar with the following code:</p>
  
  <pre><code>- (void)layoutSubviews {
    UITextField *searchField;
    NSUInteger numViews = [self.subviews count];
    for(int i = 0; i &lt; numViews; i++) {
      if([[self.subviews objectAtIndex:i] isKindOfClass:[UITextField class]]) { //conform?
          searchField = [self.subviews objectAtIndex:i];
      }
    }
    if(!(searchField == nil)) {
      [searchField setBorderStyle:UITextBorderStyleNone];
    }
    [super layoutSubviews];
  }
  </code></pre>
  
  <p>I've also tried this inside a class: </p>
  
  <pre><code>UITextField *txtSearchField = [_searchBar valueForKey:@"_searchField"];
  [txtSearchField setBackgroundColor:[UIColor clearColor]];
  [txtSearchField setBorderStyle:UITextBorderStyleNone];
  </code></pre>
  
  <p>Neither of these work. By default, it seems to have <code>UITextBorderStyleLine</code> if I manually set it to <code>None</code>. I unfortunately haven't been able to find a way to remove the border style. Does anyone know how to do this? I'm trying to figure this out since I need my search bar to look like a <code>UITextField</code>. I'm debating just switching to a <code>UITextField</code> behind the scenes at this point.</p>