I was trying to make an app with a login page. When I try to perform the segue via code, the app crashes and displays the error "(lldb)". I want to be able to segue at a specific time, not just when the user taps a button. My show function is this.
func showLogin(){
performSegueWithIdentifier("GoToLogin", sender: self)
}
I call this function here.
if PFUser.currentUser() == nil{
showLogin()
}
That was where the error occurred. How can I perform a segue like this?