I want to set subject for email sharing in UIActivityViewController
and also want to share in Twitter. I know in Twitter if we want to share — we need compress text to 140 chars. I checked many SO solutions, but nothing is working.
Is this issue fixed in latest iOS releases? Any other "working solutions"?
It seems as though emreoktem's solution—sending setValue:forKey:
to the UIActivityViewController
—is undocumented.
On iOS 7 and later, you can implement the activityViewController:subjectForActivityType:
method in an object conforming to the UIActivityItemSource
protocol to do this in a way that is documented.