When attempting to use PFLogInViewController, and PFLogInViewControllerDelegatein the view controller by default my project Swift appears the error of using an unspecified type. The code for my ViewController.swift file is below:
import UIKit
class ViewController: UIViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
var logInViewController:PFLogInViewController = PFLogInViewController()
logInController.delegate = self
self.presentViewController(logInController, animated:true, completion: nil)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
I have already imported Parse into the bridge header and can send data to the Parse servers. For some reason PFLogInViewControllerit will not work. Since Parse did not update their tutorial for Swift, I was hoping that someone could give me some idea on how to fix this error. Thank!
source
share