Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios GIDSign-in委托未在实际设备上被调用_Ios_Delegates - Fatal编程技术网

Ios GIDSign-in委托未在实际设备上被调用

Ios GIDSign-in委托未在实际设备上被调用,ios,delegates,Ios,Delegates,我集成了Google+SDK最新版本,它在模拟器中运行良好,但是在真实设备上运行的委托没有被调用。请帮助我解决这个问题。这是我在模拟器上使用的代码没有问题,但是在真实设备上委托方法没有被调用 - (IBAction)googlePlusSinInW2R:(id)sender { [MBProgressHUD showHUDAddedTo:self.view animated:YES]; [[GIDSignIn sharedInstance] setDelegate:self];

我集成了Google+SDK最新版本,它在模拟器中运行良好,但是在真实设备上运行的委托没有被调用。请帮助我解决这个问题。这是我在模拟器上使用的代码没有问题,但是在真实设备上委托方法没有被调用

- (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方法上调用其他必要的东西