title: Custom navigation right button item
body: <p>I am trying to add navigation item right bar button. Everything working correctly but I want to add this bar button item more close to the right place. Any way to change the right button items place.</p>
  
  <p>I tried to change it with button frame but it did not work</p>
  
  <p>This is my code:</p>
  
  <pre><code>let userPhoto = UIButton()
  
  userPhoto.setImage(UIImage(named: "user"), forState: .Normal)
  userPhoto.frame = CGRectMake(0, 0, 42, 42)
  userPhoto.layer.cornerRadius = userPhoto.frame.size.width / 2;
  userPhoto.layer.masksToBounds = true;
  
  userPhoto.addTarget(self, action: #selector(userEdit), forControlEvents: .TouchUpInside)
  
  let userPhotoItem = UIBarButtonItem()
  userPhotoItem.customView = userPhoto
  
  
  let phonePhoto = UIButton()
  
  phonePhoto.setImage(UIImage(named: "user"), forState: .Normal)
  phonePhoto.frame = CGRectMake(0, 0, 30, 30)
  phonePhoto.addTarget(self, action: #selector(userEdit), forControlEvents: .TouchUpInside)
  
  let userPhone = UIBarButtonItem()
  userPhone.customView = phonePhoto
  
  self.navigationItem.rightBarButtonItems = [userPhotoItem, userPhone]
  </code></pre>