iPhone/Objective-C - UIDocumentInteractionController Class Reference when presenting a view and delegates

匆匆过客 提交于 2019-12-10 19:14:17

问题


I am using UIDocumentInteractionController inside my application in order to present the Instagram filter screen as described here from within my application:

http://instagram.com/developer/iphone-hooks/

UIDocumentInteractionController Class Reference documentation:

I'm not quite sure whether it's possible to dismiss the Instagram filter screen and return back to my application with the modified UIImage after it has been uploaded (or maybe after it's been filtered) by Instagram.

As far as I know I don't think this is possible, as there's no delegate method that's available once an application has been spawned and this would most-likely involve a dismiss button from within the Instagram filter screen.

Either way, I'd also like to know whether there's a suitable way to at least return the URL/ID from Instagram once it's been posted so that I can reference the modified image from inside my application using either their API documentation or by just referencing the image url.

Thanks in advance and any help would be greatly appreciated.


回答1:


My understanding from reading the material you provided is that using UIDocumentInteractionController to do this actually opens Instagram and switches to it. If that's true, then the only way to receive a callback or any kind of information from Instagram would be if they supported it explicitly. I encourage you to ask them by email (contact@instagr.am) or on the Google group (perhaps you already did?).

(If they did support it, I'd imagine you might be able to call up Instagram with a URL like instagram://[regular options]?callback=myapp://callback_url, which they would then open when finished.)



来源:https://stackoverflow.com/questions/6338607/iphone-objective-c-uidocumentinteractioncontroller-class-reference-when-presen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!