2014-06-14 169 views

回答

0

谷歌真的是在屁股的絕對的痛苦,這一次。他們在自己的示例代碼犯了一個錯誤:

其他任何人試圖做到這一點在未來,添加[viewController dismissViewControllerAnimated:NO completion:nil];以下方法:

// Handle completion of the authorization process, and updates the Drive service 
// with the new credentials. 
- (void)viewController:(GTMOAuth2ViewControllerTouch *)viewController 
     finishedWithAuth:(GTMOAuth2Authentication *)authResult 
       error:(NSError *)error 
{ 
    if (error != nil) 
    { 
     [self showAlert:@"Authentication Error" message:error.localizedDescription]; 
     self.driveService.authorizer = nil; 
    } 
    else 
    { 
     self.driveService.authorizer = authResult; 
    } 
}