title: Setting border around custom UIBarButtonItem
body: <p>I want to put a custom button as right navigation bar button item. Here is the code:</p>
  
  <pre><code>UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
      [button setImage:[UIImage imageNamed:@"my.png"] forState:UIControlStateNormal];
      [button addTarget:self action:@selector(filterResult) forControlEvents:UIControlEventTouchUpInside];
      [button setFrame:CGRectMake(0, 0, 50, 50)];
  self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:button] autorelease];
  </code></pre>
  
  <p>The problem is that I can see only the image and not the button around it like it comes for UIBarButtonSystemItemAdd or other types.</p>
  
  <p>What should I do?</p>