Giter Club home page Giter Club logo

Comments (7)

antiguab avatar antiguab commented on August 17, 2024

sample code? Video? any more details?

from batabbarcontroller.

nikolindima avatar nikolindima commented on August 17, 2024

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.

nikolindima avatar nikolindima commented on August 17, 2024

Create pull request #64

from batabbarcontroller.

nikolindima avatar nikolindima commented on August 17, 2024

As I say. views goes under tabbar. This is your example project

screen

from batabbarcontroller.

pkasson avatar pkasson commented on August 17, 2024

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).

Screen Shot 2020-05-25 at 7 00 42 AM

from batabbarcontroller.

pkasson avatar pkasson commented on August 17, 2024

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.

 avatar commented on August 17, 2024

Timer.scheduledTimer(withTimeInterval: 0.1, repeats: false) { _ in
self.view.addSubview(baTabBarController.view)
}

Try this in your didload

from batabbarcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.