0
나는 아래 REST 도서관에 대한 구글의 API 클라이언트를 사용하여 내 맥 응용 프로그램 Google 드라이브 API를 구현하고있어
,Google 드라이브 API를위한 오브젝티브 C 일부 파일 모든
- (void)fetchFileList {
_fileList = nil;
_fileListFetchError = nil;
GTLRDriveService *service = self.service;
GTLRDriveQuery_FilesList *query = [GTLRDriveQuery_FilesList query];
// Because GTLRDrive_FileList is derived from GTLCollectionObject and the service
// property shouldFetchNextPages is enabled, this may do multiple fetches to
// retrieve all items in the file list.
query.fields = @"kind,nextPageToken,files(mimeType,id,kind,name,webViewLink,thumbnailLink,trashed)";
_fileListTicket = [service executeQuery:query
completionHandler:^(GTLRServiceTicket *callbackTicket,
GTLRDrive_FileList *fileList,
NSError *callbackError) {
// Callback
_fileList = fileList;
_fileListFetchError = callbackError;
_fileListTicket = nil;
NSLog(@"%@", fileList);
}];
}
여기 반환 값을 반환
GTLRDrive_FileList 0x6080002404e0 : {종류 : "드라이브 #의의 fileList"파일 : [5]}
가 내 드라이브에 7 개 항목이 있지만 그것은 단지 5 개 항목을 반환?
부팅 후 응용 프로그램의 첫 번째 실행 (시작 클릭)에만 7 개의 항목이 올바르게 반환됩니다! 이제 두 번째 실행 후 0을 반환합니다 !!!!! 이것은 두통을줍니다 !! – webmastx
noogui, 나는 동일한 코드를 사용하고 있으며 처음 실행 한 후에 만 문제가 발생한다는 것을 알았습니다! (실행 -> 중지 -> 다시 실행) – webmastx