Wednesday, February 8, 2023
HomeiOS Developmentios - My tabBar disappeared after including different ViewControllers

ios – My tabBar disappeared after including different ViewControllers


It’s seen if i remark half the place i set my ViewControllers.
It’s like been superimposed by different ViewControllers. Trigger it really works however i can not see it.
When i faucet backside components of display screen coloration of display screen adjustments to colours which i assign to controllers.

My run

import UIKit

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

    var window: UIWindow?


    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, choices connectionOptions: UIScene.ConnectionOptions) {
        
        guard let windowScene = (scene as? UIWindowScene) else { return }
        window = UIWindow()
        window?.windowScene = windowScene
        window?.rootViewController = MusicTabBarController()
        window?.makeKeyAndVisible()
    }

}
class ViewController: UIViewController {

    override func viewDidLoad() {
        tremendous.viewDidLoad()
        view.backgroundColor = .blue
    }

}

class SearchViewController: UITableViewController {

    override func viewDidLoad() {
        tremendous.viewDidLoad()
        view.backgroundColor = .orange
    }

}

these are my SceneDelegate and ViewControllers codes, code of my predominant controller is on the screenshot

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments