ios - Adding an image to a tab bar item only shows up as a block -
i have tab bar should have image selected index.
below sample-image sould used inside tab bar.
i have added selecting connected view controller assigned tab bar item , replacing image. appears on screen. assigned graphics not appearing on tab bar.
you can add line self.tabbaritem.image = uiimage(named: "icono-menu")?.withrenderingmode(.alwaysoriginal) in item viewcontroller viewdidload
something this
override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. self.tabbaritem.image = uiimage(named: "icono-menu")?.withrenderingmode(.alwaysoriginal) } 

Comments
Post a Comment