Using PFLogInViewController with Swift

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()
        // Do any additional setup after loading the view, typically from a nib.

        var logInViewController:PFLogInViewController = PFLogInViewController()
        logInController.delegate = self
        self.presentViewController(logInController, animated:true, completion: nil)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}

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!

+4
source share
2 answers

SDK , , . ParseUI.framework. Xcode ", ". :

import ParseUI

.

+6

. , , SDK. , Parse.framework, , . , .

0

All Articles