title: How to change the position or hide magnifier icon in UISearchBar in IOS 7?
body: <p>I am working on IOS 7 application.By default its appearing like Pic(1).But I need to change it as Pic(2).I googled and found few answers for the requirement,but it has not changed.Or else I need to hide.So that I can manage with background image.This is first image</p>
  
  <p><img src="https://i.stack.imgur.com/z2hQ1.png" alt="Pic(1) "></p>
  
  <p><img src="https://i.stack.imgur.com/0Z0D7.png" alt="enter image description here"></p>
  
  <p>I used below code to modify it.But didnt succeed.</p>
  
  <p>In .h file</p>
  
  <pre><code>@property(nonatomic,strong) IBOutlet UISearchBar *findSearchBar;
  </code></pre>
  
  <p>In .m file</p>
  
  <pre><code>@synthesize findSearchBar;
  
   - (void)viewDidLoad
   {
  [super viewDidLoad];
   [self setSearchIconToFavicon];
   }
  
   - (void)setSearchIconToFavicon
  {
  // The text within a UISearchView is a UITextField that is a subview of that UISearchView.
     UITextField *searchField;
     for (UIView *subview in self.findSearchBar.subviews)
     {
         if ([subview isKindOfClass:[UITextField class]]) {
            searchField = (UITextField *)subview;
            break;
        }
    }
  
  if (searchField)
  {
      UIView *searchIcon = searchField.leftView;
      if ([searchIcon isKindOfClass:[UIImageView class]])
      {
          NSLog(@"aye");
      }
      searchField.rightView = nil;
      searchField.leftView = nil;
      searchField.leftViewMode = UITextFieldViewModeNever;
      searchField.rightViewMode = UITextFieldViewModeAlways;
  }
  
  }
  </code></pre>
  
  <p>I am not getting how to make the center of the view's image to nil.Its really killing my time.Please help me.where I had gone wrong.</p>