I have created a with left bar button item added from storyboard, titleView and three right bar button items from code.
Here is the code:
override func
This is one of methods to solve that.
Use UIBarButtonItem as a space
let space = UIBarButtonItem(barButtonSystemItem: .FixedSpace, target: nil, action: nil) space.width = -20 // adjust as needed self.navigationItem.rightBarButtonItems = [pencilBtn, clipBtn, searchBtn, space]