UIDocumentMenuViewController button more

I have below code in my application and when I click on the Advanced button the dropbox option shows and disappears quickly, preventing the enable.

UIDocumentMenuViewController *picker = [[UIDocumentMenuViewController alloc]
                                            initWithDocumentTypes:@[(NSString *)kUTTypeImage]
                                            inMode:UIDocumentPickerModeImport];
    [picker addOptionWithTitle:@"Rolo de CΓ’mera" image:[UIImage imageNamed:@"ic_photo_library"] order:0 handler:^{

    }];
    [picker addOptionWithTitle:@"Tirar Foto" image:[UIImage imageNamed:@"ic_photo_camera"] order:0 handler:^{

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

      

Result:

DocumentPicker error

Any suggestion?

+3


source to share


1 answer


The problem is with the isTranslucent

property UINavigationBar

. I faced the same problem and I decided to remove this line in my methoddidFinishLaunchingWithOptions



UINavigationBar.appearance().isTranslucent = false

      

+2


source







All Articles