在使用dismiss的时候从C回到A,但是会闪一下B界面,之前是使用self.presentingViewController?.view.alpha = 0来处理的,但是在iOS11的手机上不管用,闪B界面的时候闪的是一个白色的界面,请问有人知道怎么解决吗?

解决方案 »

  1.   

    可以在跳转的时候结束这个View Control
      

  2.   

    chongqishixia
      

  3.   

    可以试一下在present结束的block里面pop回去
      

  4.   

    直接调用B dismiss啊
      

  5.   

       NSInteger index = [[self.navigationController viewControllers]indexOfObject:self];
       [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-2]animated:YES];
      

  6.   

            [self.navigationController.presentationController.presentedViewController dismissViewControllerAnimated:YES completion:nil];
      

  7.   

    dismissViewControllerAnimated:动画都设为NO