分享我的应用instagram应用程序iOS的链接(swift)

分享我的应用instagram应用程序iOS的链接(swift),ios,share,instagram,Ios,Share,Instagram,我想在instagram上共享应用程序、图像和文本的应用程序商店链接 instagram上是否无法显示预先填充的文本?是否可以通过iOS应用程序在instagram上共享链接。下面是我的swift代码,请建议我。图片分享成功,如何分享应用链接 let image = UIImage(named: "flag_image") let documentsURL = NSFileManager.defaultManager().URLsForDirectory(.

我想在instagram上共享应用程序、图像和文本的应用程序商店链接 instagram上是否无法显示预先填充的文本?是否可以通过iOS应用程序在instagram上共享链接。下面是我的swift代码,请建议我。图片分享成功,如何分享应用链接

         let image = UIImage(named: "flag_image")
          let documentsURL = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)[0]

         let destinationPath = documentsURL.URLByAppendingPathComponent("filename.igo")

         if let pngImageData = UIImagePNGRepresentation(image!) {
            pngImageData.writeToURL(destinationPath, atomically: false)
        }

         print(destinationPath.path!)
         self.doc = UIDocumentInteractionController()
         self.doc!.annotation = NSDictionary(object: "my caption", forKey: "InstagramCaption")
          self.doc!.URL = NSURL(fileURLWithPath: destinationPath.path!)
         self.doc!.UTI = "com.instagram.exclusivegram"
         self.doc!.presentOpenInMenuFromRect(CGRectZero, inView: self.view, animated: true) 

我也在搜索这个,但从这个链接看来:instagram不再支持它了