0

Left bar button with image not show full text, when i present that viewcontroller.enter image description here

i use below code for it

 let leftButton: UIBarButtonItem = UIBarButtonItem(image: buttonImg, style: UIBarButtonItemStyle.plain, target: self, action: #selector(self.dismissVC))
        leftButton.title = title
        navigationItem.leftBarButtonItem = leftButton

And when i use backbarbuttonitem instead of leftBarButtonItem button not displayed. please give need full suggestion

Community
  • 1
  • 1
ami rt
  • 935
  • 6
  • 11
  • Possible duplicate of [UIBarButtonItem cutoff when UINavigationController presented in UIPopoverController](http://stackoverflow.com/questions/14630536/uibarbuttonitem-cutoff-when-uinavigationcontroller-presented-in-uipopovercontrol) – Ozgur Vatansever May 10 '17 at 12:24
  • The reason backBarButtonItem is not displaying is because you are presenting the viewController instead of pushing it – brl214 May 10 '17 at 15:25
  • check this post may help https://stackoverflow.com/questions/43546132/how-to-customize-the-navigation-back-symbol-and-navigation-back-text/43556837#43556837 – Joe May 10 '17 at 20:02
  • @brl214 So, what should i do for presentViewController? – ami rt May 11 '17 at 04:27

0 Answers0