//适配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];