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
well thing had code remove black line below navigationbar
, causing problem
Comments
Post a Comment