*alertController = [UIAlertController alertControllerWithTitle:@"提示" message:@"还有订单未提交,是否继续扫面" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *sure = [UIAlertAction actionWithTitle:@"继续" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
NSLog(@"继续");
}];
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
NSLog(@"取消");
}];
[alertController addAction:sure];
[alertController addAction:cancel];
[self presentViewController:alertController animated:YES completion:nil];