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.

tab bar image want add

i have added selecting connected view controller assigned tab bar item , replacing image. appears on screen. assigned graphics not appearing on tab bar.

the middle icon

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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -