gpt4 book ai didi

ios - 我怎样才能把导航栏放在谷歌登录屏幕上?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:25:55 24 4
gpt4 key购买 nike

因为如果用户不想登录,则无法返回到上一个屏幕,用户必须终止该应用程序。

enter image description here

最佳答案

确保您的 UIWebView 位于具有 UINavigationController 的 View Controller 内。我怀疑您以模态方式(通过 Storyboard或以编程方式)呈现您的登录屏幕 - 尝试将其推送到导航堆栈上。

编辑:这是我的意思,在QEFilesListViewController中:

GTMOAuth2ViewControllerTouch *authViewController =
[[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDriveFile
clientID:kClientId
clientSecret:kClientSecret
keychainItemName:kKeychainItemName
delegate:self
finishedSelector:finishedSelector];
[self presentViewController:authViewController
animated:YES
completion:nil];

如果你把最后一条语句改成

    [self.navigationController pushViewController:authViewController animated:YES];

你会得到一个后退按钮:

enter image description here

我知道当你按下后退按钮时,它会自动再次显示登录屏幕。我认为如果您想在自己的应用中实现这一点,您可以采取适当的措施来确保这种情况不会发生。

关于ios - 我怎样才能把导航栏放在谷歌登录屏幕上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31357550/

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