您的位置:首页 > 产品设计 > UI/UE

IOS 7 Study - UIActivityViewController(Presenting Sharing Options)

2014-02-11 17:16 393 查看
You want to be able to allow your users to share content inside your apps with their
friends, through an interface, such as Facebook and Twitter.





Solution

Create an instance of the UIActivityViewController class and share your content
through this class.

eg: you have a text field where the user can enter text to be shared, and a
Share button right near it. When the user presses the Share button, you will simply pass
the text of the text field to your instance of the UIActivityViewController class. Here
is our code. We are writing this code for iPhone, so we will present our activity view
controller as a modal view controller.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: