Comments (1)
+1, I used to call tabBarController(tabBarController: UITabBarController, didSelectViewController viewController: UIViewController)
and it worked fine before, but since I adopted RAMAnimatedTabBarController this method isn't called anymore; I tried changing the type in the function name, but didn't work... any suggestions?
EDIT
I actually found a workaround for what I need: inside the function tapHandler(gesture: UIGestureRecognizer)
, under let currentIndex = gesture.view!.tag
and above if selectedIndex != currentIndex {
I added:
if (self.delegate != nil) {
self.delegate?.tabBarController!(self, didSelectViewController: self.selectedViewController!)
}
If needed, the same code also works inside setSelectIndex(#from:Int,to:Int)
, just under selectedIndex = to
Now the delegate method works fine for me.
from animated-tab-bar.
Related Issues (20)
- change behavior when tab bar item tapped twice HOT 4
- Setting image and title via nib not storyboard HOT 1
- Animates two items at the same time HOT 1
- Icons become 30x30 if you make setViewControllers second/third time HOT 1
- How to prohibit pictures from rendering HOT 1
- RTL not supported? HOT 1
- Seting animation programmatically does not work HOT 2
- Animation does not work
- Hiding tabbar issue HOT 1
- TabBarItem text color doesn't obey the tint color when selected HOT 1
- Demo is not working HOT 2
- First tabbarItem Text tintColor is wrong HOT 2
- selectedImage property makes me confused HOT 1
- Followed everything but I didn't get anythings HOT 5
- The dividing line disappears HOT 2
- How to integrate with lottie?
- iOS 16 crashes HOT 3
- bar appering over iOS bottom line
- Increase TabBar Height
- Do it support git image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animated-tab-bar.