Friday, 15 January 2010

facebook - Type FBSessionState does not conform to protocol AnyObject -



facebook - Type FBSessionState does not conform to protocol AnyObject -

hi guys trying convert objective c facebook custom login swift creating nsdictionary store status , session , not able add together fbsessionstate object in nsdictionary code below

fbsession.openactivesessionwithreadpermissions(permission, allowloginui: allowlogin, completionhandler: { (session , status, error) -> void in var dict : nsdictionary = nsdictionary () dict.setvalue(status, forkey: "status") })

i type fbsessionstate not conform protocol anyobject error

i not sure maybe nsdictionary not take enum value. suggest utilize 'dictionary' instead of nsdictionary

facebook swift xcode6

No comments:

Post a Comment