UIActivityViewController中共享提供程序的不同数据 [英] Different data for sharing providers in UIActivityViewController
问题描述
我正在尝试使用 UIActivityViewController
,并使用一个长 NSString
作为数据。如果我输入一个> 140个字符的字符串,则其中的推文表不会显示该字符串。如果我在将字符串提供给控制器之前将其截断,则所有 UIActivities
都有截断的字符串。我不希望Facebook或消息被截断。
I'm trying to use an UIActivityViewController
with one long NSString
as the data. If I put a string > 140 characters, the tweet sheet in it does not display the string. And if I truncate the string before giving it to the controller, all of the UIActivities
have the truncated string. I don't want Facebook or Message to be truncated.
有没有办法给不同的 UIActivities
提供不同的字符串?
Is there a way to give different strings to different UIActivities
?
谢谢!
(例如,Marco Arment的The Magazine应用程序通过在 UIActivityPostToTwitter中使用截断字符串后跟@TheMagazineApp来实现此目的/ code>,以及其他
UIActivities
中的其他内容。)
(e.g. Marco Arment's The Magazine app does this by having a truncated string followed by @TheMagazineApp in UIActivityPostToTwitter
, and other stuff in other UIActivities
.)
推荐答案
我认为这就是你的'重新寻找
您应该能够为每种活动类型提供不同的数据。
You should be able to provide different data for each activity type.
这篇关于UIActivityViewController中共享提供程序的不同数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!