UIDocumentInteractionController funktioniert nicht mehr in iOS6

Habe ich eine app, die Aktien mit instagram gebaut für iOS5 und jetzt in iOS6, das sharing nicht mehr funktioniert, obwohl canOpenURL gibt true zurück, und der code ausgeführt wird. Die Bilder werden gespeichert in den Dokumenten Ordner der Anwendung mit einem .igo Erweiterung. Dies wird an instagram com.instagram.exclusivegram.

Den code unten geht es in die if-Anweisung und zeigt "hier", aber nicht öffnen Sie die Freigabe Mit den dialog-so, wie es am unteren Rand des Bildschirms.

        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 ist die Bereitstellung der richtigen Dateipfad als gut.

Danke,
Nick

InformationsquelleAutor Nick Pirollo | 2012-09-27
Schreibe einen Kommentar