ios - How to change the color of a TabBar in Swift? Image as Background in Navigation bar? -


i'm trying change color of tabbar default color different color? how do programmatically swift? also, how assign image background navigation bar? sorry if easy question, i'm new programming.

let's if have tab bar controller. can in viewdidload()

self.tabbarcontroller?.tabbar.backgroundcolor = uicolor.redcolor() self.tabbarcontroller?.tabbar.tintcolor = uicolor.bluecolor() 

and navigation controller image

  var image = uiimage(named: "filename")   self.navigationcontroller?.navigationbar.setbackgroundimage(image, forbarmetrics: uibarmetrics.default) 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -