hussc/PTCardTabBar

UITabbarController Delegate methods not being called

Opened this issue · 2 comments

I've used this in one of my application, implemented self.delegate = self in override open func viewDidLoad() but though tabbarcontroller's delegate method shouldSelect viewController is not being called. What should I do?

Did you fix this issue?
@mehulgecg

Here is the solution:

  1. Go to PTCardTabBarController in the podfile
  2. Define a function in that class
open func delegateCall(index: Int){
        
    }
  1. Call delegateCall function from the function (didSelectItemAt) created at extension of PTCardTabBarController
  2. In your example file create overridden function of it.
override func delegateCall(index: Int) {
        print(index)
    }