iOS Swift - Share on Instagram with captions
问题 I am able to successfully share an image on Instagram using the UIDocumentInteractionController , but the InstagramCaption key won't work. This is my code: self.controller = UIDocumentInteractionController() // controller.delegate = self self.controller.URL = fileUri // HERE, the caption won't appear. self.controller.annotation = NSDictionary(objectsAndKeys: "my caption", "InstagramCaption") self.controller.UTI = "com.instagram.exclusivegram" self.controller.presentOpenInMenuFromRect