iPhone/Objective-C-呈现视图和委托时的UIDocumentInteractionController类参考 [英] iPhone/Objective-C - UIDocumentInteractionController Class Reference when presenting a view and delegates

查看:58
本文介绍了iPhone/Objective-C-呈现视图和委托时的UIDocumentInteractionController类参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用 UIDocumentInteractionController ,以便在我的应用程序内部显示如下所示的Instagram筛选器屏幕:

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类参考文档:

UIDocumentInteractionController Class Reference documentation:

我不太确定是否有可能关闭Instagram筛选器屏幕,并在修改后的 UIImage 由Instagram上传(或可能经过筛选)后使用修改后的 UIImage 返回我的应用程序

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.

据我所知,这是不可能的,因为一旦生成应用程序,就没有可用的委托方法,并且很可能会涉及到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.

无论哪种方式,我也想知道是否存在一种适当的方法,至少可以在Instagram发布后从Instagram返回URL/ID,以便我可以使用其API文档或应用程序从我的应用程序内部引用已修改的图像.只需引用图片网址即可.

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.

推荐答案

通过阅读您提供的材料,我的理解是,实际上使用UIDocumentInteractionController来打开 Instagram并切换到它.如果是这样,那么从Instagram接收回调或任何类型的信息的唯一方法就是他们明确支持它.我建议您通过电子邮件(contact@instagr.am)或在Google网上论坛(也许您已经做到了?).

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?).

(如果他们确实支持的话,我想您可能可以使用 instagram://instagram = [常规选项]?callback = myapp://callback_url 这样的URL来调用Instagram,他们会在完成后打开.)

(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.)

这篇关于iPhone/Objective-C-呈现视图和委托时的UIDocumentInteractionController类参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆