chat-sdk / chat-sdk-ios

Chat SDK iOS - Open Source Mobile Messenger
http://sdk.chat
Other
913 stars 276 forks source link

Customize BAppTabBar ? #43

Closed jimijon closed 7 years ago

jimijon commented 7 years ago

I tried this and it had no effect.

let vc1 = UIStoryboard(name: "Main", bundle: nil) .instantiateViewController(withIdentifier: "DashboardViewController") as! DashboardViewController
    let vc2 = UIStoryboard(name: "Main", bundle: nil) .instantiateViewController(withIdentifier: "MainNewsViewController") as! MainNewsViewController

    BInterfaceManager.shared().a .addTabBarViewController(vc1, at: 0)
    BInterfaceManager.shared().a .addTabBarViewController(vc2, at: 1)

How do I customize, change, etc the tab bar controller? Otherwise I do have login to chat!!!

jimijon commented 7 years ago

I had my order of initialization wrong. I needed to initialize my view controllers, then add them to the interface and then finally init the main view controller (uitabbarcontroller)