title: UIBarButtonItem code not working
body: <p>I try with a normal big size icon, not resized at all, and the UIBarButtonItemStyleBordered works:</p>
  
  <pre><code>UIBarButtonItem *compassButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"compass.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(compassButtonPressed:)];
  compassButtonItem.enabled = YES;
  self.navigationItem.rightBarButtonItem = compassButtonItem;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tPD9a.png" alt="UIBarButtonItem initWithImage"></p>
  
  <p>Then I try to resize the image to 20x20, using a UIButton and a CGRectMake, the border doesn't work:</p>
  
  <pre><code>UIButton *compassButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
  UIImage *compassImage = [UIImage imageNamed:@"compass.png"];
  [compassButton addTarget:self action:@selector(compassButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  [compassButton setImage:compassImage forState:UIControlStateNormal];
  [compassButton setImage:compassImage forState:UIControlStateSelected];
  UIBarButtonItem *compassButtonItem = [[UIBarButtonItem alloc] initWithCustomView:compassButton];
  compassButtonItem.style = UIBarButtonItemStyleBordered;
  compassButtonItem.enabled = YES;
  self.navigationItem.rightBarButtonItem = compassButtonItem;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/7z1iu.png" alt="UIButton setImage"></p>
  
  <p>Any ideas how to use the UIBarButtonItemStyleBordered with an UIImage resized?.</p>