UITabBarの区切り記号を削除したいと思います。 UITabBarのカスタム背景画像を設定しました。次のコードでは、セパレータはUITabBarイメージの上にあります。UITabBar行が機能しないのを削除します。
class myTabBarController: UITabBarController {
override func viewDidLoad() {
UITabBar.appearance().backgroundImage = UIImage(named: "secretTab.png")
}
私は次のコードを追加しているが、それだけではなく、ラインだけでなく、カスタムイメージを削除しました。(影)
class myTabBarController: UITabBarController {
override func viewDidLoad() {
self.tabBar.clipsToBounds = true
self.tabBarController?.tabBar.autoresizesSubviews = false
UITabBar.appearance().backgroundImage = UIImage(named: "secretTab.png")
}
[Remove UITabbar上の境界線](https://stackoverflow.com/questions/32645674/remove-uitabbar-upper-borderline) – nathan
@ nathan私はすでにその投稿を見ました。それは私を助けなかった:/ – risa8
どうして?行が削除されましたか? SOにこの問題の解決策がたくさんあります:https://google.com/search?hl=en&q=UITabBar%20remove%20hairline+site%3Astackoverflow.com – nathan