Yalantis / FoldingTabBar.iOS

Folding Tab Bar and Tab Bar Controller
https://yalantis.com
MIT License
3.68k stars 458 forks source link

The FoldingTabBar is not displayed when using performSegue #73

Closed resand closed 7 years ago

resand commented 7 years ago

When I perform a performSegue with code, for example in a login when redirecting to the login screen the tabs are not shown, only a black bar comes out; what is this about? simulator screen shot 26 01 2017 1 42 49 p m

knikaha commented 7 years ago

yes you should use delegate

lukeswitz commented 7 years ago
 -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([segue.identifier isEqualToString:@"yourSegueNameHere"]) {

        // Get destination view
        LoginViewControllerName *vc2 = segue.destinationViewController;
    }
lukeswitz commented 7 years ago

You need a navigation controller in there to handle what you're trying to do. Here is some reference on view controller handling in Swift http://www.codingexplorer.com/segue-swift-view-controllers/

Hope that helps

resand commented 7 years ago

The function I try to do is a login to a start view, if I enter the Home works correctly; But when I pass from login to homeView is that the bar is left in black.... :S

Vodolazkyi commented 7 years ago

duplicate of https://github.com/Yalantis/FoldingTabBar.iOS/issues/76