关于模态窗口错误 Application tried to present modally an active controller

来源:互联网 发布:淘宝达人主页链接 编辑:程序博客网 时间:2024/06/09 04:59

先判断presentedViewController为空时,再presentModalViewController


if (rootviewController.presentedViewController ==nil)

   {

      [rootviewControllerpresentModalViewController:imagePickeranimated:YES];

   }

原创粉丝点击