UIActivityViewController oder UIDocumentInteractionController mit WhatsApp und FB

Ich benötige Facebook und WhatsApp als Freigabeoptionen für mein Bild. Ich habe bereits UIActivityViewController implementiert, wo ich über Facebook und teilen kannUIDocumentInteractionController Wo kann ich über WhatsApp teilen. Ich weiß nicht, wie ich diese Dinge zusammenführen soll.

UIActivityViewController:

UIActivityViewController *activityViewContoller = [[UIActivityViewController alloc] 
       initWithActivityItems:@[@"Test", image] applicationActivities:nil];
[self presentViewController:activityViewContoller animated:YES completion:nil];

UIDocumentInteractionController:

NSString *savePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/whatsAppTmp.wai"];
    [UIImageJPEGRepresentation(image, 1.0) writeToFile:savePath atomically:YES];

    _documentInteractionController = [UIDocumentInteractionController 
                 interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];
    _documentInteractionController.UTI = @"net.whatsapp.image";
    _documentInteractionController.delegate = self;
    [_documentInteractionController presentOpenInMenuFromRect:CGRectZero 
                                    inView:self.view animated:YES];

Ich möchte beide in einem Popover haben, aber ich habe keine Ahnung, wie ich das erreichen soll. Irgendein Tipp bitte?

Ich habe ausgechecktStackOverFlow Frage 1, aber es hilft mir überhaupt nicht. Meine Datei ist .wai (für WhatsApp). Wenn ich also versuche, sie per FB-Datei zu senden, kann ich sie nicht öffnen. Außerdem werden alle Optionen angezeigt, wobei nur 2 (FB + WhatsApp) sichtbar sein sollen. Im Anschluss an dieStackOverFlow Frage 2 Ich kann nur FB anzeigen (funktioniert, weil ich ein normales Image eingestellt habe), aber WhatsApp kann ich nicht hinzufügen (keine .wai-Datei, ich weiß nicht, was ich mit UTI machen soll). Gibt es eine Möglichkeit, dieses Problem zu lösen?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage