Comments (4)
Remove @IBOutlet and @IBInspectable from:
class RAMAnimatedTabBarItem: UITabBarItem {
@IBOutlet weak var animation: RAMItemAnimation!
@IBInspectable var textColor: UIColor = UIColor.blackColor()
Set the properties like explained in the Usage
section direct on the object in your code and instantiate the custom tabBar elements (also explained in the usage). Worked fine for me, have it working just with code. :)
from animated-tab-bar.
can u provide your sample code to me?
1: In viewdidload()
createViewContainers()
fatal error: unexpectedly found nil while unwrapping an Optional value
2. cannot set animation
RAMAnimatedTabBarItem.playAnimation.....
assertion failed: add animation in UITabBarItem
Here is my code to build tabbar
let listTabView = UIViewController()
let uploadTabView = UIViewController()
let statusTabView = UIViewController()
let settingTabView = UIViewController()
var tabViewArray = [listTabView,uploadTabView,statusTabView,settingTabView]
var tabViewTitleArray = ["list","upload","status","setting"]
var imagePath = "icons.bundle/tabIcons/"
var navArray:[AnyObject] = [];
var tag = 0
for viewController:UIViewController in tabViewArray {
var nav:UINavigationController = UINavigationController(rootViewController: viewController)
var title = tabViewTitleArray[tag]
var imageName = NSString(format: "%@%@", imagePath,title)
var tarbarItem = RAMAnimatedTabBarItem()
tarbarItem.image = UIImage(named: imageName)
tarbarItem.title = title
tarbarItem.animation = RAMRotationAnimation()
nav.tabBarItem = tarbarItem
navArray.append(nav)
tag++
}
self.tabController = RAMAnimatedTabBarController()
self.tabController.viewControllers = navArray
self.tabController.delegate = self
self.tabController.buildTabBarItems()
from animated-tab-bar.
That's a big headache....Need more help
from animated-tab-bar.
Make sure you're all the UITabBarItem have the animation object.
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.