Ich habe ein Bild im Ordner "Assets" und es wird nicht in der Tab-Leiste angezeigt. Ich habe "Rendern als" auf "Originalbild" eingestellt, wie andere Antworten gesagt haben, aber das behebt das Problem nicht.Tab-Leiste Element Bild wird nicht angezeigt
class CustomTabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
let homeController = HomeController(collectionViewLayout: UICollectionViewFlowLayout())
let navigationController = UINavigationController(rootViewController: homeController)
navigationController.tabBarItem.image = UIImage(named:"news_feed_icon")
viewControllers = [homeController]
}
}
Halten 72X72 Bild. – Hasya