我正在使用swift3中的Facebook sdk来了解配置文件何时更改
在我的视图中加载
override func viewDidLoad() {
super.viewDidLoad()
basededatos=BaseDeDatosFirebase()
mensajes = MensajesView(vistaRoot: self)
print("Notificacion")
NotificationCenter.default.addObserver(self, selector:"onProfileUpdated:", name:NSNotification.Name.FBSDKProfileDidChange, object: nil)
}
func onProfileUpdated(notification: NSNotification)
{print("cambiando")
}
但是当我登录facebook时:
[ProcIOS.MainViewController onProfileUpdated:]:无法识别的选择器 发送到实例0x7fe4b6d0ef70' ***首先抛出调用堆栈: