ios - 通过 iOS 共享的 UIActivityViewController 更改

标签 ios uikit share uiactivityviewcontroller

我使用 iOS 6 UIActivityView Controller 在我的应用程序中实现了简单的共享功能。

当在 Facebook 或 Twitter 上分享时,会有一个“通过 iOS 分享”

代码是:

NSString *textToShare = @"Test string to share";

UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:[NSArray arrayWithObject:textToShare] applicationActivities:nil];

[self presentViewController:activityViewController animated:YES completion:nil];

有什么方法可以将“通过 iOS 共享”更改为我的应用程序名称或其他名称吗?

shareviaios

谢谢, 比尔。

最佳答案

iOS 6 Share Sheet

The iOS 6 share sheet is a feature of Apple's Facebook integration.

Disadvantages

Posts from the share sheet are attributed to iOS by default; contact Facebook to correctly configure attribution for your app

Sharing and Distribution on iOS

关于ios - 通过 iOS 共享的 UIActivityViewController 更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13935816/

相关文章:

ios - 在 UITextView 或 UILabel 中快速显示 html 数据

Xcode Instruments - 启用 NSZombie 检测?它在哪里?

ios - 如何在触发单元格的 IBAction 时更新 UITableViewController 的信息?

share - Blogger (Blogspot) 共享按钮以计算主页上的单个帖子页面

java - 如何在 Android 10 (Android Q) 中访问外部存储?

iOS 应用程序不会暂停

iphone - 当我在后台运行 NSURLConnection 错误时......我该如何修复?

cocoa-touch - 制作多行 UILabel 从顶部而不是中间开始文本

iphone - 将 UIImage 用于 CGContextSetFillColorWithColor 时突然出现内存峰值

facebook - 网页中的“赞”和“分享”按钮会导致 javascript 警告和 php 错误