iOS 6共享像Messages,而不像Photos(UIActivityViewController和UIDocumentInteractionController) [英] iOS 6 sharing like Messages, not like Photos (UIActivityViewController and UIDocumentInteractionController)

查看:168
本文介绍了iOS 6共享像Messages,而不像Photos(UIActivityViewController和UIDocumentInteractionController)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS 6中,点击照片应用中的操作按钮会显示标准的UIActivityViewController:

In iOS 6, tapping the action button in the Photos app presents the standard UIActivityViewController:

从Messages中执行相同操作会提供一组不同的选项。这看起来像我在使用UIDocumentInteractionController api来拉取所有可以处理图像的应用程序。

Doing the same from Messages presents a different set of options. This looks to me like it's using the UIDocumentInteractionController api to pull all the apps that say they can handle an image.

我的问题有两个:


  1. 如何进入消息操作菜单? Tumblr和Halftone,仅举几例,已经完成了......我似乎无法找到文档。

  1. How does one get into the Messages action menu? Tumblr and Halftone, to name a few, have done it... I can't seem to find the documentation.

如何显示消息 - 风格动作菜单?当我呈现一个UIActivityViewController时,它没有那些选项...只需将标准设置为facebook / twitter / copy / print / save to camera roll / etc.

How does one show the Messages-style action menu? When I present a UIActivityViewController it doesn't have those options... just the standard set facebook/twitter/copy/print/save to camera roll/etc.

谢谢!

推荐答案

如何进入该列表:

How to get on that list: "Registering the File Types Your App Supports"

要处理图像,您可能需要注册 public.image (参考)

To handle images, you probably want to register for public.image (Reference)

要显示该列表,您只需要询问 UIDocumentInteractionController 显示其选项菜单

To present that list, you just need to ask a UIDocumentInteractionController to display its options menu

这篇关于iOS 6共享像Messages,而不像Photos(UIActivityViewController和UIDocumentInteractionController)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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