ios - Google plus 登录在 iOS 应用程序中不起作用

标签 ios objective-c google-plus

我正在使用此代码登录 Google Plus 以访问我的应用。

- (IBAction)GplusAction:(id)sender {

    // Make sure the GPPSignInButton class is linked in because references from
    // xib file doesn't count.
    [GPPSignInButton class];

    GPPSignIn *signIn = [GPPSignIn sharedInstance];
    signIn.shouldFetchGooglePlusUser = YES;
    signIn.shouldFetchGoogleUserEmail = YES;
    signIn.delegate = self;

}

- (void)finishedWithAuth:(GTMOAuth2Authentication *)auth
                   error:(NSError *)error
{
    if (error) {
        NSLog(@"error");
        return;
    }

}

它不会重定向到任何页面。你能帮我解决我的问题吗?如果在 iOS 中有任何简单的 Google Plus 登录,请引用链接。

提前致谢。

最佳答案

关于ios - Google plus 登录在 iOS 应用程序中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20901704/

相关文章:

ios - 已知的未知类型名称?

ios - 如何创建一个类以用于不同的项目?

iphone - 如何查找/删除 UITableViewCell 的自定义行详细信息

php - HybridAuth Google+ 登录错误 : redirect_uri_mismatch

google-plus - 是否有用于 Google Plus 事件的 API

objective-c - NSTimer:释放时是否调用了invalidate?

iOS UISlider - 更改价格值

ios - 单元格不可在主视图中嵌入 UItableView?

html - G 加分享按钮不是 W3C 有效

ios - iOS 水平居中约束