Setting up a UITabBarController with nib ViewControllers
<p>Ok stuck on this one, help would be most appreciated.</p>

<p>So I have a tab controller inside a navigation controller in my storyboard.</p>

<p>Then I have two view controllers with nib files that I want to load into the tab controller programmatically. I'm using the following code but getting a blank screen when I load the app.</p>

<pre><code>class MainTabBarController: UITabBarController, UITabBarControllerDelegate {

override func viewDidLoad() {
    super.viewDidLoad()
    delegate = self
}

override func viewDidAppear(animated: Bool) {
    super.viewWillAppear(animated)

    let verbViewController = VerbViewController(nibName: "VerbViewController", bundle: nil)
    let communityViewController = CommunityViewController(nibName: "CommunityViewController", bundle: nil)

    let tabIcon1 = UITabBarItem(title: nil, image: UIImage(named: "VerbTab"), tag: 0)
    let tabIcon5 = UITabBarItem(title: nil, image: UIImage(named: "CommunityTab"), selectedImage: nil)


    verbViewController.tabBarItem = tabIcon1
    communityViewController.tabBarItem = tabIcon5

    let tabControllers = [verbViewController, communityViewController]
    self.tabBarController?.setViewControllers(tabControllers, animated: true)
    self.viewControllers = tabControllers
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

// MARK: - Delegate method
func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -&gt; Bool {
    return true
}
</code></pre>

<p>}</p>