If you have setup your segue in Storyboard, give the segue an identifier. (say , yourID
)
Then invoke the following method.
self.performSegueWithIdentifier("yourId", sender: self)
when you want to go to the next ViewController.
EDIT
call the method in last else.
}else {
self.actInd.startAnimating()
var newUser = PFUser()
newUser.username = username
newUser.password = password
newUser.email = email
self.performSegueWithIdentifier("yourId", sender: self)
newUser.signUpInBackgroundWithBlock({ (succeed, error) -> Void in
3
solved Login form in swift