我正在尝试向取消按钮添加自定义操作,以便在完成后可以再次显示横幅UIActivityViewController
。
[self presentViewController:activityController animated:YES completion:nil];
[activityController setCompletionHandler:^(NSString *act, BOOL done)
{
if (!act) {
NSLog(@"Cancel");
[[RevMobAds session] showBanner];
}
}];
}
这是我到目前为止尝试过的,但是当我按下UIActivityViewController
按钮并显示错误时它崩溃了:
exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller