ios - UIImage not showing on UIBarButtonItem -


i have uinavigationcontroller extension adds rightbarbutton navigationbar. have add 4 navigationcontrollers , problem in 2 showing correctly other 2 have button without image. button works in 4 of them (even ones doesn't have image)

func addreportbutton() {      let reportimage = uiimage(named: "report_btn")     let reportbutton = uibarbuttonitem(image: reportimage, style: .plain, target: self, action: "reportbuttonpressed")     navigationbar.topitem?.rightbarbuttonitem = reportbutton } 

the following screenshots debugger

screenshot button screenshot button , image

well thing had code remove black line below navigationbar , causing problem


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -