'FBSDKAccessTokenDidChangeNotification' 的 swift 是多少
What's the swift equivalent for 'FBSDKAccessTokenDidChangeNotification'
我终于将我的 Facebook SDK 包装器从 Objective C 迁移到 Swift。
FBSDKAccessTokenDidChangeNotification
的正确替换是什么?
当我尝试使用它时出现以下错误:
NotificationCenter.default.addObserver(
self,
selector: #selector(accountChanged(notification:)),
name: FBSDKAccessTokenDidChangeNotification,
object: nil)
// Use of unresolved identifier 'FBSDKAccessTokenDidChangeNotification'
Swift 中的通知名称是 AccessTokenDidChange
或 AccessTokenDidChangeNotification
,具体取决于您编译的 iOS 版本。
我终于将我的 Facebook SDK 包装器从 Objective C 迁移到 Swift。
FBSDKAccessTokenDidChangeNotification
的正确替换是什么?
当我尝试使用它时出现以下错误:
NotificationCenter.default.addObserver(
self,
selector: #selector(accountChanged(notification:)),
name: FBSDKAccessTokenDidChangeNotification,
object: nil)
// Use of unresolved identifier 'FBSDKAccessTokenDidChangeNotification'
Swift 中的通知名称是 AccessTokenDidChange
或 AccessTokenDidChangeNotification
,具体取决于您编译的 iOS 版本。