 extension ElloTabBarController: UITabBarDelegate {
 
     public func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) {
-        if let items = _tabBar.items as? [UITabBarItem] {
+        if let items = tabBar.items as? [UITabBarItem] {
             if let index = find(items, item) {
                 if index == selectedIndex {
                     if let navigationViewController = selectedViewController as? UINavigationController {

            return tabBarItem
        }
        let items = controllers.map(mapper)
        _tabBar.items = items
    }

    private func updateVisibleViewController() {


    override public func viewDidLoad() {
        super.viewDidLoad()
        self.view.addSubview(tabBar)
        tabBar.delegate = self

        selectedIndex = 2
        updateTabBarItems()
        modalTransitionStyle = .CrossDissolve
        if let selectedViewController = selectedViewController {
            tabBar.selectedItem = selectedViewController.tabBarItem
        }
    }

