/ / TabBarItem बैकग्राउंड का रंग कैसे बदलें - ios, स्विफ्ट, टैब्बर, यूटैबरबिटम

TabBarItem पृष्ठभूमि रंग बदलने के लिए कैसे-ios, स्विफ्ट, tabbar, uitabbaritem

मैं एक की पृष्ठभूमि को बदलने की कोशिश कर रहा हूँ TabBarItem या एक पूरी छवि बनाने के लिए जो सभी जगह ले।

नीचे दिए गए उदाहरण की तरह:

टैब पट्टी

क्या आपके पास एक आइडिया है कि कैसे इसे तेजी से करें

उत्तर:

जवाब के लिए 0 № 1

स्विफ्ट:

//change icon and title color
UITabBar.appearance().tintColor = UIColor.redColor()

//change background default color
UITabBar.appearance().barTintColor = UIColor.blackColor()

//change selected background image
UITabBar.appearance().selectionIndicatorImage = UIImage(named: "tabSelected")