I need to open google login viewController as a modal from a existing viewController. That's ok but I don't know how to add a button for closing the modal because I'm not using an UINavigationController. Anybody having this same problem?
GTMOAuth2ViewControllerTouch *viewController;
viewController = [GTMOAuth2ViewControllerTouch controllerWithScope:GOOGLE_SCOPE_YOUTUBE
clientID:GOOGLE_CLIENT_ID
clientSecret:GOOGLE_CLIENT_SECRET
keychainItemName:GOOGLE_KEYCHAIN
delegate:self
finishedSelector:finishedSel];
NSDictionary *params = [NSDictionary dictionaryWithObject:@"es" forKey:@"hl"];
viewController.signIn.additionalAuthorizationParameters = params;
viewController.signIn.shouldFetchGoogleUserProfile = YES;
NSString *html = @"<html><body style=\"font-family:Arial\"><div style=\"text-align:center;\">Cargando página para iniciar sesión...</div></body></html>";
viewController.initialHTMLString = html;
[self presentViewController:viewController animated:NO completion:nil];
thanks