title: Customising bookmark icon added to UISearchBar
body: <p>I created a <code>UISearchBar</code> control with the bookmark icon displayed in the search field itself. I am now trying to look for ways for me to skin the bookmark button with an image. I have stumbled upon <a href="https://stackoverflow.com/a/10108613/1918049">this post</a> (refer to fourth comment) which seems to be able to do what I want to do, but only works for the <code>x</code> button in the search field and not the bookmark button.</p>
  
  <p>I tried the following line to change the button, but it doesn't seem to work:</p>
  
  <pre><code>[[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundImage:[UIImage imageNamed:@"BookmarkButtonNormal.png"] forState:UIControlStateNormal];
  [[UIButton appearanceWhenContainedIn:[UISearchBar class], nil] setBackgroundImage:[UIImage imageNamed:@"BookmarkButtonSelected.png"] forState:UIControlStateSelected];
  </code></pre>
  
  <p>Does anyone have any idea how I can go about doing this?</p>