Com.instagram.exclusivegram shows “Notes” in addition to “Instagram” in iOS9

I have an application that allows users to share via Instagram using a document interaction controller. I want to show Instagram in the list of applications, so in my code I use the extension only for Instagram.igo (like com.instagram.exclusivegram, as indicated in their documentation: https://instagram.com/developer/mobile-sharing/iphone- hooks / ).

The following code works, but after I switched to iOS9, I see that now “Notes” also appear in the list of applications (instead of just showing Instagram). Has anyone else encountered this problem?

let image = self.imageCache.getImage(url) let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String let filePath = documentsPath.stringByAppendingString("/RPImage.igo") UIImageJPEGRepresentation(image!, 1.0)!.writeToFile(filePath, atomically: true) let fileUrl = NSURL(string: "file://\(filePath)") docController = self.setupControllerWithURL(fileUrl!, delegate: self) docController.UTI = "com.instagram.exclusivegram" docController.presentOpenInMenuFromRect(CGRectMake(1, 1, 1, 1), inView: self.view, animated: true) 
+6
source share

All Articles