Код: Выделить всё
NSArray *types = @[
(__bridge NSString *)kUTTypePDF,
(__bridge NSString *)kUTTypeText,
@"com.microsoft.word.doc",
@"org.openxmlformats.wordprocessingml.document",
@"com.microsoft.excel.xls",
@"org.openxmlformats.spreadsheetml.sheet",
@"com.microsoft.powerpoint.ppt",
@"org.openxmlformats.presentationml.presentation",
@"com.apple.iwork.pages.sffpages",
@"com.apple.iwork.numbers.sffnumbers",
@"com.apple.keynote.key",
@"public.zip-archive",
];
UIDocumentPickerViewController *picker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:types inMode:UIDocumentPickerModeImport];
Код: Выделить всё
NSArray *types = @[
UTTypePDF,
UTTypeText,
UTTypePresentation,
UTTypeSpreadsheet,
UTTypeZIP,
[UTType typeWithIdentifier:@"com.microsoft.word.doc"],
[UTType typeWithIdentifier:@"org.openxmlformats.wordprocessingml.document"],
[UTType typeWithIdentifier:@"com.apple.iwork.pages.sffpages"],
];
UIDocumentPickerViewController *picker = [[UIDocumentPickerViewController alloc] initForOpeningContentTypes:types asCopy:YES];
Подробнее здесь: https://stackoverflow.com/questions/785 ... controller