You just need to use the new UIActivityViewControllerCompletionWithItemsHandler handler:
typedef void (^UIActivityViewControllerCompletionWithItemsHandler)(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError);
Name it as follows:
[yourActivityVC setCompletionWithItemsHandler:^(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError){ }];
In addition, if you are interested in knowing which item was selected, you just need to make sure that your activity items comply with the UIActivityItemSource protocol;
UIActivityItemSource Documentation
source share