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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -