我已完成以下代码以在Instagram上发布图片和文本letfileURL=NSURL(fileURLWithPath:writePath)self.documentController=UIDocumentInteractionController(URL:fileURL)self.documentController.delegate=selfself.documentController.UTI="com.instagram.exclusivegram"//"com.instagram.photo"self.documentController.annotation=NSDict