//适配ipad

        if ([alert respondsToSelector:@selector(popoverPresentationController)]) {

            

            alert.popoverPresentationController.sourceView = self.view;

        

            alert.popoverPresentationController.sourceRect = CGRectMake(0, kScreenHeight, kScreenWidth, kScreenHeight);

        }

        

        [self presentViewController:alert animated:YES completion:nil];

        

相关文章:

  • 2022-12-23
  • 2021-05-15
  • 2021-11-24
  • 2021-10-18
  • 2021-06-16
  • 2022-12-23
  • 2021-07-05
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2021-07-07
  • 2021-06-10
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案