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

先判断presentedViewController为空时,再presentModalViewController


if (self.presentedViewController == nil)

   {

      [self presentModalViewController:myController animated:YES];

   }

你可能感兴趣的:(ios)