After installed the right hand bar buttons my page title become dealigned. Is there a way to realign it in the centre of the page?
Haven't found a way to do in with the storyboard, but I imagine that may be possible programmatically?!
After installed the right hand bar buttons my page title become dealigned. Is there a way to realign it in the centre of the page?
Haven't found a way to do in with the storyboard, but I imagine that may be possible programmatically?!
Your title might be too wide. Try to add a background color and see how much it's span.
I had a similar issue.
What I did is to add an empty image on the left side to balance the nav bar:
private func alignWithWhiteSpace() -> UIBarButtonItem
{
let menuBtn = UIButton()
menuBtn.userInteractionEnabled = true
menuBtn.frame = CGRectMake(0, 0, 25, 25)
menuBtn.setImage(UIImage(named: "empty image"), forState: .Normal)
let menuBtnItem = UIBarButtonItem()
menuBtnItem.customView = menuBtn
return menuBtnItem
}