2016-07-11 15 views
1

Ich brauche einen Blick zu präsentieren, nachdem UIActivityViewController Mutter VCDetect Entlassung von UIActivityViewController

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

Sorry für Noob Frage bewegen, aber ich fand Lösung nur für die Klassen individuelle VCs

Antwort

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

Hoffnung das hilft dir.

8

Swift 3 Version

avvc.completionWithItemsHandler = { (activityType, completed:Bool, returnedItems:[Any]?, error: Error?) in 
    if completed { 
     // Do something 
    } 
} 
Verwandte Themen