在这个问题上绞尽脑汁但是我无法让PFTwitterUtils在swift中工作。
我已经从Parse导入了所有相关文件(包括PFTwitter Utils)
但它只是不会认识到我创建一个实例。
有谁知道为什么会这样?这就是我到目前为止所做的一切
import UIKit
import Parse
import Foundation
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func loginWithTwitter(sender: AnyObject) {
PFTwitterUtils
}
}
答案 0 :(得分:0)
在ViewController顶部添加import ParseTwitterUtils