sedq sedq - 4 months ago 46
iOS Question

Detect dismissal of UIActivityViewController

I need to present a view, after UIActivityViewController will move to parent VC

...
UIActivityViewController *avvc = [[UIActivityViewController alloc] initWithActivityItems:shareItems applicationActivities:nil];
[self presentViewController:avvc animated:YES completion:nil];


Sorry for noob question, but i found solution only for custom VC's classes

Answer
[avvc setCompletionHandler:^(NSString *activityType, BOOL completed) {
    NSLog(@"after dismiss");
    //Present another VC
}];

Hope this help you.

Comments