jjzjj

uiDelegate

全部标签

ios - Google 登录崩溃和错误 : uiDelegate must either be a |UIViewController|

我正在尝试对iOS应用实现Google登录,但该应用在点击登录按钮时崩溃并出现以下错误:reason:'uiDelegatemusteitherbea|UIViewController|orimplementthe|signIn:presentViewController:|and|signIn:dismissViewController:|methodsfrom|GIDSignInUIDelegate|.'我不确定我哪里出错了。我关注了samplecodefromGoogle'siOSgithub确切地。我也无法编译Google的示例。如果有人能指出我正确的方向,那就太好了。大多数S

ios - Swift - uiDelegate 必须是 UIViewController 或实现 signIn :presentViewController: & signIn:dismissViewController: methods

从Crashlytics,我们在Google登录过程中收到大量崩溃报告。崩溃报告如下:FatalException:NSInvalidArgumentExceptionuiDelegatemusteitherbea|UIViewController|orimplementthe|signIn:presentViewController:|and|signIn:dismissViewController:|methodsfrom|GIDSignInUIDelegate|.FatalException:NSInvalidArgumentException0CoreFoundation0x1