UIActivityViewController

UIActivityViewController

本文介绍了检测UIActivityViewController的解雇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在UIActivityViewController移至父级VC之后,我需要提供一个视图

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];

推荐答案

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

希望这对您有所帮助.

这篇关于检测UIActivityViewController的解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 13:12