我正在为我的iOS应用程序制作文件共享功能,但是我对UIDocumentPickerViewController
仍然不熟悉。 我不知道为什么我的应用程序会崩溃。
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.image"] inMode:UIDocumentPickerModeImport];
documentPicker.delegate = self;
documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:documentPicker animated:YES completion:nil];
应用程序在高亮行崩溃。
之前有人做过这个吗?我想做与下面附件类似的事情