[英]How to inject share extension' controller into my app?
I have a controller with a share UITabBarButtonItem
: 我有一个共享
UITabBarButtonItem
的控制器:
Now when I tap on the share button, I need to display sth like this: 现在,当我点击共享按钮时,我需要显示如下内容:
but with different apps: I need Apps for PDF or TEXT . 但使用不同的应用程序:我需要适用于PDF或TEXT的应用程序。 How to do this?
这个怎么做?
So far I created app group, add share extension to the project... and, what should i do now? 到目前为止,我已经创建了应用程序组,向项目添加了共享扩展名...,我现在该怎么办?
you need to use share extension and add a SLComposeSheetConfigurationItem to your share extension for category name. 您需要使用共享扩展名,并将SLComposeSheetConfigurationItem添加到共享扩展名中以获取类别名称。
On click of category name show a list view with all possible options to choose category name and once user select one send image data and selected category name to server. 单击类别名称后,将显示一个列表视图,其中包含所有可能的选项来选择类别名称,并且一旦用户选择一个,就会将图像数据和选定的类别名称发送到服务器。
you can refer this links for more details 您可以参考此链接以获取更多详细信息
https://www.ibm.com/developerworks/community/blogs/mobileblog/entry/ios-8-share-extension-photos-ibm-bluemix?lang=en https://www.ibm.com/developerworks/community/blogs/mobileblog/entry/ios-8-share-extension-photos-ibm-bluemix?lang=en
https://www.shinobicontrols.com/blog/posts/2014/07/21/ios8-day-by-day-day-2-sharing-extension https://www.shinobicontrols.com/blog/posts/2014/07/21/ios8-day-by-day-day-2-sharing-extension
实际上我犯了一个错误,我需要UIActivityController
而不是share extension 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.