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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -