title: Google Drive iOS SDK: Display Cancel Login Button
body: <p>I'm working on a iOS Application and i use Google drive to access my files , login and listing file works fine , but I'm just asking how i can add a cancel button on the Login interface provided by Google drive sdk see the Image bellow </p>
  
  <p><img src="https://i.stack.imgur.com/meQtb.png" alt="enter image description here"></p>
  
  <p>As,you see there are no way to do a <code>cancel</code> or a <code>go back</code> button.</p>
  
  <p>Here Is my code </p>
  
  <pre><code>// verify if the user is already connected or not 
      - (void)checkIfIsConnected
      {
          // Check for authorization.
          GTMOAuth2Authentication *auth =
          [GTMOAuth2ViewControllerTouch authForGoogleFromKeychainForName:kKeychainItemName
                                                                clientID:kClientID
                                                            clientSecret:kClientSecret];
          if ([auth canAuthorize]) {
              [self isAuthorizedWithAuthentication:auth];
          }else
          {
              [self ConnectToDrive];
          }
      }
  
      - (GTLServiceDrive *)driveService {
          static GTLServiceDrive *service = nil;
          if (!service) {
  
              service = [[GTLServiceDrive alloc] init];
              // Have the service object set tickets to fetch consecutive pages
              // of the feed so we do not need to manually fetch them.
              service.shouldFetchNextPages = YES;
              // Have the service object set tickets to retry temporary error conditions
              // automatically.
              service.retryEnabled = YES;
          }
          return service;
      }
  
      -(void) ConnectToDrive{
          SEL finishedSelector = @selector(viewController:finishedWithAuth:error:);
          GTMOAuth2ViewControllerTouch *authViewController =
          [[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLAuthScopeDrive
                                                     clientID:kClientID
                                                 clientSecret:kClientSecret
                                             keychainItemName:kKeychainItemName
                                                     delegate:self
                                             finishedSelector:finishedSelector];
          [self.fileManagementViewController presentModalViewController:authViewController animated:YES];
      }
  
      // Action executed after finishing the Authentication
      - (void)viewController:(GTMOAuth2ViewControllerTouch *)viewController
            finishedWithAuth:(GTMOAuth2Authentication *)auth
                       error:(NSError *)error {
          [self.fileManagementViewController dismissModalViewControllerAnimated:YES];
          if (error == nil) {
              [self isAuthorizedWithAuthentication:auth];
          }
      }
  
      - (void)isAuthorizedWithAuthentication:(GTMOAuth2Authentication *)auth {
          [[self driveService] setAuthorizer:auth];
          self.isAuthorized = YES;
          [self loadDriveFiles];
      }
  </code></pre>
  
  <p>so what wrong ??</p>