iosios6ios7uiactivityviewcontrolleruiactivity

Copy Link Button in UIActivityViewController


Is there a service or parameter I am missing to create the "Copy Link" button as seen in Apple's 12 Days app?

I am able to get the Copy button to appear by allowing

UIActivityTypeCopyToPasteboard

in my UIActivityViewController, and passing it a URL

NSURL *activityURL = [NSURL URLWithString:@"http://www.mylink.com/"];

It functions fine, but the button title is "Copy", which is not as clear as "Copy Link". I'm wondering if forcing this title is a service option I've missed, or requires defining a custom activity type. As far as I can tell, activityTitle is only available if you subclass the service method.

Thanks for any insight.

enter image description here


Solution

  • You'll have to make your own subclass due to the way the activity view controller's handle displaying options, unfortunately. :\