ios App中的谷歌认证后如何进行?当我允许访问我的应用程序时。出现的窗口是“请复制此代码,切换到您的应用程序并将其复制到那里:”。我不知道如何从这里开始。这是我写的代码
SEL finishedSel = @selector(viewController:finishedWithAuth:error:);
viewController = [[GTMOAuth2ViewControllerTouch
controllerWithScope:scope
clientID:clientID
clientSecret:clientSecret
keychainItemName:nil
delegate:self finishedSelector:finishedSel]autorelease];
-(void)viewController:(GTMOAuth2ViewControllerTouch *)viewController
finishedWithAuth:(GTMOAuth2Authentication *)auth
error:(NSError *)error {
if (error != nil) {
// Authentication failed
} else {
// Authentication succeeded
}
}