Comments (7)
sample code? Video? any more details?
from batabbarcontroller.
i fix it. but don't know how to make commit
public var viewControllers: [UIViewController] = [] {
didSet {
var i = Int(viewControllers.count) - 1
while i >= 0 {
let vc = viewControllers[i]
if let vcView = vc.view, let tabBar = tabBar {
self.view.insertSubview(vcView, belowSubview: tabBar)
vcView.snp.makeConstraints { (make) in
make.top.equalToSuperview()
make.leading.equalToSuperview()
make.trailing.equalToSuperview()
make.bottom.equalTo(tabBar.snp.top)
}
}
i -= 1
}
}
}
need to add constraints to view
from batabbarcontroller.
Create pull request #64
from batabbarcontroller.
As I say. views goes under tabbar. This is your example project
from batabbarcontroller.
Same issue - when using a VC with content, nothing displays. The debug hierarchy shows nothing for the view. I created a simple VC with a single label - "zero". All VC's show in the hierarchy, but the view itself, for the VC that has 'zero' is showing its content on the tab bar controller. Any VC with real content, always shows up with nothing, and black background (picture included).
from batabbarcontroller.
It appears that the view lifecycle is not complete by the time the tab bar controller gets the view, so it has nothing to render yet. If the VC bg color is set in viewDidLoad, you do see that color, but none of the components from the IB ... something is not handled in the correct order.
from batabbarcontroller.
Timer.scheduledTimer(withTimeInterval: 0.1, repeats: false) { _ in
self.view.addSubview(baTabBarController.view)
}
Try this in your didload
from batabbarcontroller.
Related Issues (20)
- Tab Bar animation not working after in development build HOT 6
- iOS 12 no title HOT 1
- Not working in Swift HOT 2
- subView can't center HOT 3
- Push to tabbar controller HOT 5
- Swift 5.0 support HOT 1
- Circle is too big on first load HOT 2
- multiple tab bar click HOT 2
- Table View didnt reload when i switch from one tabbar to another tab bar HOT 1
- Value of type 'BATabBarController' has no member 'tabBarItems'
- tabBarAnimatonDuration inaccessible due to internal protection level
- re-tap selected item freezes TabBar HOT 2
- TabBar not taking safeAreaInsets into account
- can i use it in storyBoard? HOT 1
- Pixelated icon
- baTabBarController.hidesBottomBarWhenPushed = true hides tabbar items but not the tabbar itself and baTabBarController.tabBar.hidden = true is gives error 'tabBar' is inaccessible due to 'internal' protection level
- Please help. How can I switch between vc
- Issue with BATabbarController
- an irregular behaviour
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 batabbarcontroller.