UIDocumentInteractionController больше не работает в iOS6

У меня есть приложение, которое делится с Instagram, созданным для iOS5, а теперь и в iOS6, обмен больше не работает, хотяcanOpenURL возвращает true и код выполняется. Изображения сохраняются в папке документов приложения с.igo расширение. Это передается в Instagram с com.instagram.exclusivegram.

Код ниже, он вводит оператор if и отображает "здесь в " но не открывает диалоговое окно «Поделиться с», как это было в нижней части экрана.

        NSLog(@"%@", _imgToUpload);
        NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];
        if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) {
            uidController = [[UIDocumentInteractionController alloc] init];
            //imageToUpload is a file path with .igo file extension
            uidController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:_imgToUpload]];
            uidController.UTI = @"com.instagram.exclusivegram";
            uidController.delegate = self;
            CGRect navRect = self.view.frame;
            [uidController presentOpenInMenuFromRect:navRect inView:[UIApplication sharedApplication].keyWindow animated:YES];
            NSLog(@"here in");
        }

_imgToUpload также предоставляет правильный путь к файлу.

Спасибо ник

Ответы на вопрос(2)

Ваш ответ на вопрос