当我整合Instagram在我的项目中。我得到了image
from UIImagePickerController
之后我想把它发送到Instagram但是当我发送时image
to Instagram by UIDocumentInteractionController
委托方法presentOptionsMenuFromRect:inView: animated:
像这样
[documentInteractionController presentOptionsMenuFromRect:CGRectZero inView:self.view animated:YES];
警告来了警告:在演示过程中尝试演示 <_uidocumentactivityviewcontroller:>!
该应用程序没有崩溃。但我没有明白问题所在。为什么会出现此警告以及它的含义。我在互联网上搜索并阅读了有关此问题的问题,但没有得到任何答案。帮我 !!
// Breaks
[viewController1 dismissViewControllerAnimated:YES completion:NULL];
[self presentViewController:viewController2 animated:YES completion:NULL];
// Does not break
[viewController1 dismissViewControllerAnimated:YES completion:^{
[self presentViewController:viewController2 animated:YES completion:NULL];
}];
上述代码的 Swift 3 版本如下所示:
// Breaks
viewController1.dismiss(animated: true)
present(viewController2, animated: true)
// Does not break
viewController1.dismiss(animated: true) {
present(viewController2, animated: true)
}
请注意上面第二个示例中完成处理程序的使用。
它只呈现viewController2
after viewController1
已被完全解雇。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)