将我的应用程序添加到图库中的“共享”按钮

Add my app to “Share” button in gallery

我的想法是 select 照片,按分享按钮和 select 我安装的应用程序,然后用 selected 照片打开我的应用程序(就像 Facebook 或 Twitter 那样).

在 iOS 上可以(Android 可以吗)?

您需要构建一个扩展。自 iOS 8.

以来已提供扩展

https://developer.apple.com/app-extensions/

您可以使用共享扩展来实现此目的 iOS8

https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ShareSheet.html

http://www.veasoftware.com/tutorials/2014/10/8/xcode-6-tutorial-ios-8-simple-share-extension-in-swift

它解决了我的问题: 您必须进入 new/target,输入姓名,然后添加此票证中的代码:
Ticket