아래 당신이 생각 얻을 것이다 연결이 읽기 이에 대한
-(IBAction)iCloudDriveFullFolder:(id)sender{
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.data"]
inMode:UIDocumentPickerModeImport];
documentPicker.delegate = self;
documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:documentPicker animated:YES completion:nil];
}
#pragma mark - iCloud files
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url {
if (controller.documentPickerMode == UIDocumentPickerModeImport) {
// NSString *alertMessage = [NSString stringWithFormat:@"Successfully imported %@", [url lastPathComponent]];
//do stuff
}
}
야 덕분에 너무 많은, 나는 오랫동안이 문제에 붙어 봤는데 캠 이것과 모든 일을 가로 질러! 고맙습니다! –
@LazarKukolj 항상 환영합니다 .--) –
@Rohitax Rajguru 제 대답을 수락하십시오 :-) –