I followed http://googlemac.blogspot.com/2011/05/ios-and-mac-sign-in-controllers.html to allow users to use Google to login to an iPhone app. After I tap \"Allow access\" bu
It turns out this is pretty straightforward. In the login callback, simply dismiss and remove viewController from the parent view controller.
- (void)viewController:(UIViewController *)viewController
finishedWithAuth:(GTMOAuth2Authentication *)auth
error:(NSError *)error
{
if (error == nil) {
// Get rid of the login view.
// self.parentViewController was saved somewhere else and is the parent
// view controller of the view controller that shows the google login view.
[self.parentViewController dismissViewControllerAnimated:NO completion:nil];
[viewController removeFromParentViewController];
// Tell the delegate that the user successfully logged in ...
} else {
// Error handling code ...
}
}