Closed resand closed 7 years ago
yes you should use delegate
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"yourSegueNameHere"]) {
// Get destination view
LoginViewControllerName *vc2 = segue.destinationViewController;
}
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
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
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?