如何向UIActivityViewController对象添加不同的文本 [英] How to add different text to UIActivityViewController objects
问题描述
我已经实现了一个UIActivityViewController,用于共享一些信息。在这种情况下,我有一个问题:是否可以在Facebook分享/ Twitter共享/或邮件共享之间制作不同的文本?设置的文本与其他文本不同...
I have implemented a UIActivityViewController, for sharing some information. In this case I have a question: Is it possible to make a different text between the facebook sharing/twitter sharing/ or mail sharing? That the text which is set is different from the others...
一个好的UIActivityViewController教程非常有用。
A good UIActivityViewController tutorial would be very useful.
我当时的代码是,用于显示文字和图片:
My code at the time is, for displaying text and image:
NSString *text = @"Lime Cat";
UIImage *image = [UIImage imageNamed:@"MyApp Icon 512x512.png"];
NSArray *items = [NSArray arrayWithObjects:text,image , nil];
但我如何管理NSString仅用于邮件,并为其创建一个单独的NSString facebook分享选项?
But how can I manage it that the NSString is just for the mail, and make a seperate NSString for the facebook share option?
有什么建议吗?
谢谢。
推荐答案
你可以转到下面的链接,有一个教程可以帮助你:
you can go to the link bellow, there is a tutorial that can help you :
https://www.albertopasca.it/whiletrue/objective-c-custom-uiactivityviewcontroller -icons-and-text /
这篇关于如何向UIActivityViewController对象添加不同的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!