UIActivityViewController相当于ios 5 [英] UIActivityViewController equivalent on ios 5
本文介绍了UIActivityViewController相当于ios 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从应用程序中共享一些文本。如果用户安装了ios 6,我将调用UIActivityViewController进行共享。但是,如果用户有ios 5,那么我可以调用任何类似的按钮来分享邮件和推特......?
I am trying to share some text from an application. If the user has ios 6 installed I will call UIActivityViewController to share. However if the user has ios 5 is there anything similar i can call that would have buttons to share to mail and twitter....?
推荐答案
没有内置方法可以做到这一点。最简单的方法是使用 UIActionSheet
,并为您需要的每项服务提供按钮,然后根据需要调用各种API。
There is no built-in way to do this. The easiest way is to use a UIActionSheet
with buttons for each service you need, and then call through to the various APIs as required.
这篇关于UIActivityViewController相当于ios 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文