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

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -