Ios GIDSign-in委托未在实际设备上被调用
我集成了Google+SDK最新版本,它在模拟器中运行良好,但是在真实设备上运行的委托没有被调用。请帮助我解决这个问题。这是我在模拟器上使用的代码没有问题,但是在真实设备上委托方法没有被调用Ios GIDSign-in委托未在实际设备上被调用,ios,delegates,Ios,Delegates,我集成了Google+SDK最新版本,它在模拟器中运行良好,但是在真实设备上运行的委托没有被调用。请帮助我解决这个问题。这是我在模拟器上使用的代码没有问题,但是在真实设备上委托方法没有被调用 - (IBAction)googlePlusSinInW2R:(id)sender { [MBProgressHUD showHUDAddedTo:self.view animated:YES]; [[GIDSignIn sharedInstance] setDelegate:self];
- (IBAction)googlePlusSinInW2R:(id)sender {
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
[[GIDSignIn sharedInstance] setDelegate:self];
[[GIDSignIn sharedInstance] setUiDelegate:self];
[GIDSignIn sharedInstance].shouldFetchBasicProfile = YES;
[GIDSignIn sharedInstance].clientID = @"931697643692-7ns75vnf7gai.apps.googleusercontent.com";
[GIDSignIn sharedInstance].scopes = @[@"https://www.googleapis.com/auth/plus.login",@"https://www.googleapis.com/auth/userinfo.email",@"https://www.googleapis.com/auth/userinfo.profile"];
userEmail.text=@"";
confirmEmail.text=@"";
userPassword.text=@"";
confirmPassword.text=@"";
userFirstname.text=@"";
userLastname.text=@"";
userGender.text=@"";
dateofBirth.text=@"";
[[GIDSignIn sharedInstance] signIn];
}
您缺少以下内容:
[GIDSignIn sharedInstance].AllowSignInWithWebView=YES
请任何一个面对这个问题并得到解决的人让我对此有一些想法尝试设置ViewWillExisten或viewDidLoad上的委托,然后在action方法上调用其他必要的东西