0
UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
negativeSpacer.width = -30;
NSArray *rightItems = [[NSArray alloc] initWithObjects:negativeSpacer,rightBarButtonItem2,rightBarButtonItem1,nil];
self.navigationItem.rightBarButtonItems = rightItems;

I hope to adjust the right margin between rightBarButtonItem2 and the right side of the screen.

It works in iOS 10.

Pranjal Bikash Das
  • 1,092
  • 9
  • 27

0 Answers0