Question: Here is the snapshot:
![enter image description here](https://i.stack.imgur.com/qmXkR.png)

And the code is here:

```
UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
leftButton.frame = CGRectMake(0.0f, 0.0f, 46.0f, 32.0f);
[leftButton setBackgroundImage:[UIImage imageNamed:@"navi_register_up.png"] forState:UIControlStateNormal];
[leftButton addTarget:self action:@selector(doRegister) forControlEvents:UIControlEventTouchUpInside];

UIBarButtonItem *leftBarItem = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
self.navigationItem.leftBarButtonItem = leftBarItem;
[leftBarItem release];

```

Is there any way to move the button up some px?
Thank you:)

Answer: 
Here's a Swift 3 version of the most voted answer:

```
 let soundButton = UIBarButtonItem(image:image , style: UIBarButtonItemStyle.plain, target: self, action: #selector(self.soundPressed))

        let negativeSpacer = UIBarButtonItem(barButtonSystemItem: .fixedSpace, target: nil, action: nil)
        negativeSpacer.width = -5

        self.navigationItem.rightBarButtonItems = [negativeSpacer,soundButton]

```
I had a similar issue and found an option that sufficed in the storyboard. Just click on the navbar item and you should see the x/y position options.

[![enter image description here](https://i.stack.imgur.com/vW8aM.png)](https://i.stack.imgur.com/vW8aM.png)