Friday, November 20, 2026
HomeiOS Developmentios - Importing '.db' information utilizing UIDocumentPickerViewController

ios – Importing ‘.db’ information utilizing UIDocumentPickerViewController

[ad_1]

I’m attempting to import .db information utilizing UIDocumentPickerViewController. Solely want to indicate information with db extension (eg: pattern.db) in doc picker.
There may be an choice to offer doc sort as Uniform Kind Identifiers, however there isn’t any UTIs discovered for db information.
Is feasible to create customized UTIs by checking extension.
Offering pattern code under,

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

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

simulator screenshot

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments