iOS 8-如何注册要包含在系统共享菜单中的应用程序? [英] iOS 8 - How to register an app to be included in the system share menu?

查看:49
本文介绍了iOS 8-如何注册要包含在系统共享菜单中的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您从iOS 8设备上的照片应用共享图像,则会出现以下对话框.如何将应用程序添加到红色圆圈共享菜单中?(我想为扩展名.png,.jpg和.gif注册一个iOS 8 iPhone应用程序)

The dialog below comes up if you share an image from the Photos app on iOS 8 devices. How to get an app into the red circled share menu? (I would like to register an iOS 8 iPhone app for the extensions .png, .jpg and .gif)

推荐答案

您需要创建一个应用扩展程序.

You'll need to create an app extension.

根据苹果公司的报道:

要将新目标添加到您的Xcode应用程序项目中,请选择文件">新建">目标.在新目标对话框左侧的边栏中,选择适用于iOS或OS X的应用程序扩展.在右侧窗格中对话框的一侧,Xcode显示您可以选择的模板.

To add a new target to your Xcode app project, choose File > New > Target. In the sidebar on the left side of the new target dialog, choose Application Extension for iOS or OS X. In the pane on the right side of the dialog, Xcode displays the templates you can choose.

您将要选择一个动作扩展

You'll want to choose an Action extension

这篇关于iOS 8-如何注册要包含在系统共享菜单中的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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