Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:11:15+00:00 2026-06-17T23:11:15+00:00

Am developing ios app including google drive. In google drive when am trying to

  • 0

Am developing ios app including google drive. In google drive when am trying to list files, it displays all folders, subfolders, subfiles in single page itself. These is my code

GTLQueryDrive *query = [GTLQueryDrive queryForFilesList];

    [driveService executeQuery:query completionHandler:^(GTLServiceTicket *ticket,
                                                         GTLDriveFileList *filesList,
                                                         NSError *error) {
if (error == nil) {

            [FilesFromGoogleDrive addObjectsFromArray:filesList.items
             ];

        };

I dont want to list all files in main page. I need similar to google drive application for accessing folders, subfolders, subfiles in sequential way.Am trying this from past one week but there is no good result. So please help me how to access folders, subfolders.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:11:16+00:00Added an answer on June 17, 2026 at 11:11 pm

    If you want to list all files in a folder identified by folderId, you can use the following code (from https://developers.google.com/drive/v2/reference/children/list):

    + (void)printFilesInFolderWithService:(GTLServiceDrive *)service
                                 folderId:(NSString *)folderId {
      // The service can be set to automatically fetch all pages of the result. More
      // information can be found on https://code.google.com/p/google-api-objectivec-client/wiki/Introduction#Result_Pages.
      service.shouldFetchNextPages = YES;
    
      GTLQueryDrive *query =
        [GTLQueryDrive queryForChildrenListWithFolderId:folderId];
      // queryTicket can be used to track the status of the request.
      GTLServiceTicket *queryTicket =
        [service executeQuery:query
            completionHandler:^(GTLServiceTicket *ticket,
                                GTLDriveChildList *children, NSError *error) {
              if (error == nil) {
                for (GTLDriveChildReference *child in children) {
                  NSLog(@"File Id: %@", child.identifier);
                }
              } else {
                NSLog(@"An error occurred: %@", error);
              }
            }];
    }
    

    Another option is to search for files having folderId in their Parents collection:

    https://developers.google.com/drive/search-parameters

    For instance, you can have a search query like the following:

    '1234567' in parents
    

    Where ‘1234567’ is the id of the folder you want to list files for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iOS app that must handle several stereo audio files (ranging
I'm developing an ios audio app on xcode and I'm trying to use 2
I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver
I am developing a system including an iOS and Android app. I have two
I am developing an iOS app in which I am streaming .mp3 files using
I'm developing an ios app that's very basic and uses objective almost all of
I am developing an iOS app and would like to obtain a list instance
I'm new in developing iOS app. So I've recently faced a problem with localization
I'm developing an iOS app using Core Plot headers. I have different UI for
I am developing an iOS app with a tab bar controller. In the first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.