Создание экземпляра UIViewController со встроенным UITabBarController - PullRequest
0 голосов
/ 16 апреля 2020

У меня есть ViewController, и у V C есть встроенный TabBarController.

С моим кодом ViewController представлен без TabBar. Как я могу также создать экземпляр TabBarController?

    let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
    let nextViewController = storyBoard.instantiateViewController(withIdentifier: "MainViewController") as! MainViewController
    nextViewController.modalTransitionStyle = .crossDissolve
    nextViewController.modalPresentationStyle = .fullScreen
    if let coordinates = locationManager.location?.coordinate {
        nextViewController.coordinates = coordinates
    }
    nextViewController.posts = posts
    self.present(nextViewController, animated: true, completion: nil)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...