0

I am trying to import .db files using UIDocumentPickerViewController. Only need to show files with db extension (eg: sample.db) in document picker. There is an option to provide document type as Uniform Type Identifiers, but there is no UTIs found for db files. Is possible to create custom UTIs by checking extension. Providing sample code below,

      [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.db"]
                                                             inMode:UIDocumentPickerModeImport];

    documentPicker.delegate = self;
    [self presentViewController:documentPicker animated:YES completion:nil];

simulator screenshot

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.