gpt4 book ai didi

ios - 使用 UISwitch 的 GIDSignIn

转载 作者:搜寻专家 更新时间:2023-11-01 07:31:06 24 4
gpt4 key购买 nike

Google 的文档说,如果“实现 GIDSignInUIDelegate 的类不是 UIViewController 的子类,则实现 signInWillDispatch:error:、signIn:presentViewController: 和 signIn:dismissViewController: GIDSignInUIDelegate 协议(protocol)的方法”。我正在使用 UITableViewController

如何将这些方法与 UITableViewController(以及 UISwitch)一起使用?我是否在我的 appDel 或 View Controller 中实现这些方法?太困惑了!!!!!

最佳答案

幸运的是 UITableViewController 本身是 UIViewController 的子类,所以你不需要做任何特别的事情,只需将你的 UITableViewController 设置为委托(delegate)用于 Google 登录。

关于ios - 使用 UISwitch 的 GIDSignIn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32492270/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com