SOTabBarController selected index not refreshing issue iOS swift

 Problem:

I had tried that select particular index on SOTabBarController.In log it shows selected index updated but in UI not updated.

How to solve that?


Solution:

In your cocoapod file add the code in SOTabBarController file

  public func preSelectedIndex(indexInt){

            self.tabBar.didSelectTab(index: index)

        }


In another class file Class SOTabBar update the code aslike below 

from private to normal function
func didSelectTab(index: Int) {


Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift