viewController没有名为fbuser的成员

时间:2015-04-30 12:49:20

标签: ios swift

有一个错误:

  

viewController没有名为fbuser

的成员

如何解决此错误?

let fbrequest = FBRequestConnection.self
FBRequestConnection.startWithGraphPath("me?fields=feed", completionHandler: { (connection, result, error) -> Void in
    if (error == nil) {
        let fbGraphObject = result as FBGraphObject
        let feed = fbGraphObject.objectForKey("feed") as NSMutableDictionary
        let data = feed.objectForKey("data") as NSMutableArray
        let postDescription = data[0].objectForKey("description") as String
        //println( post )
        self.fbuser.initialUserFeed = feed
        self.performSegueWithIdentifier("SelectStreams", sender: self)
    }
    else {
        //TODO Allert to user that something went wrong                 
        println(error)
    }
})

请解释这个错误是什么以及我如何解决它。

0 个答案:

没有答案