ios - Figuring out which icon was clicked on in UIActivityViewController -
using "social" framework, when presenting modal uiactivityviewcontroller displays usual social-media icons, there way find out icon user clicked on? meaning, if chose twitter, facebook, mail, message, etc?
i expecting possibly see delegate methods class in docs don't see anything.
anybody got ideas?
the uiactivityviewcontroller has completionhandler property. implement handler notified.
uiactivityviewcontroller *avc = ...; avc.completionhandler = ^(nsstring *activitytype, bool completed) { if (completed) { nslog(@"the selected activity %@", activitytype); } };
Comments
Post a Comment