ios - 为什么在 iOS 中禁用了 Google+ 登录页面的接受按钮?

标签 ios ios7 google-plus

我正在尝试将 Google 登录添加到我的 iOS 应用程序中。我对 iOS 应用程序开发很陌生。

我按照谷歌官方指南,集成Google SDK ,在我的 View Controller 上放置一个按钮并调用身份验证。

填写邮箱和密码后,可以看到如下页面,但是accept按钮总是被禁用,这是为什么呢?我在模拟器中运行这个应用程序。

enter image description here

这是我的代码:

-(IBAction)handleGoogleSignIn:(id)sender
{

    GPPSignIn *signIn = [GPPSignIn sharedInstance];

    signIn.shouldFetchGooglePlusUser = YES;
    signIn.shouldFetchGoogleUserEmail = YES;
    signIn.clientID = kClientId;
    signIn.scopes = @[ @"profile" ];
    signIn.delegate = self;

    [signIn authenticate];
}

最佳答案

该页面看起来不正确 - 我怀疑 JS 或 CSS 没有正确加载。您能否尝试重置模拟器并再次尝试,希望在这种情况下会加载整个页面。或者从“设置”应用中的 Safari 选项中清除缓存。

关于ios - 为什么在 iOS 中禁用了 Google+ 登录页面的接受按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21644956/

相关文章:

iphone - iOS7 应用程序提交 - 只有 2x(视网膜)图像?

ios - 为什么不将值添加到 NSMutableArray?

javascript - 无法停止使用 google-plus 登录

ios - iOS,先强制退出应用程序,点击接收通知横幅后,应用程序启动失败

ios - iOS 中的 Urban Airship SDK 集成和推送通知

ios - 在 iOS 7 下,如何使我的 UITextView 高度取决于运行应用程序的设备类型(4 英寸屏幕 vs 3.5)

facebook-opengraph - 为什么Google会忽略我的+1页缩略图?

Android/PlusClient :loadPeople returns incomplete PersonBuffer objects in onPeopleLoaded

iphone - 在我的步行/运行应用程序中发现错误的距离和路线

iOS 图像查看器或使用最小行间距的 Collection View (启用分页)预览与照片应用程序完全相同