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:
Any suggestion?
+3
source to share