现在我正在尝试实现Google Login。
我是这样跟着的:https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift
但我在 AppDelegate.swift 中遇到错误:
class AppDelegate: UIResponder, UIApplicationDelegate, GIDSignInDelegate
....
error :
类型“AppDelegate”不符合协议“GIDSignInDelegate”
Help me.
你需要实现这两个方法GIDSignInDelegate
在你的AppDelegate
.
func sign(_ signIn: GIDSignIn!, didDisconnectWith user: GIDGoogleUser!, withError error: Error!) {
}
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)