UITabbarController Delegate methods not being called
Opened this issue · 2 comments
mehulgecg commented
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?
AAlboghdady commented
Did you fix this issue?
@mehulgecg
HakanKumdakci commented
Here is the solution:
- Go to PTCardTabBarController in the podfile
- Define a function in that class
open func delegateCall(index: Int){
}
- Call delegateCall function from the function (didSelectItemAt) created at extension of PTCardTabBarController
- In your example file create overridden function of it.
override func delegateCall(index: Int) {
print(index)
}