Well, this is my first time, I hope this helps
I made a standalone registration method for triyng, but I think the goal is the same
My code for conditional segue was
@IBAction func LoginPressed(sender: UIButton) {
if RutField.text == "243338743" && CodigoField.text == "1104"{
dispatch_async(dispatch_get_main_queue()){
var Storyboard = UIStoryboard(name: "Main", bundle: nil)
var PerfilUsuario : UIViewController = Storyboard.instantiateViewControllerWithIdentifier("PerfilUsuario") as! UIViewController
self.presentViewController(PerfilUsuario, animated: true, completion: nil)
}
}
else {
TrekLogo.hidden = true
}
}
, , -
, "StoryBoard ID" , "UsuarioPerfil"