gpt4 book ai didi

ios - 如何在 Apple Pay PKPaymentAuthorizationViewController 上方显示 UIAlertView?

转载 作者:IT王子 更新时间:2023-10-29 08:14:58 27 4
gpt4 key购买 nike

使用下面的标准 UIAlertView 代码将在 Apple Pay PKPaymentAuthorizationViewController 表下方显示警报。

[[[UIAlertView alloc] initWithTitle:@"Payment Error"
message:[error localizedDescription]
delegate:nil
cancelButtonTitle:@"Okay"
otherButtonTitles:nil] show];

如何在付款授权表上方显示?或者是否有不同的方式来显示 Apple Pay 的错误消息?当用户输入无效的送货地址时,我想给出具体的错误消息。

最佳答案

您不能在任何 Remote View Controllers 上显示 UI 元素,因为它可能会危及系统的安全性。这包括 PKPaymentAuthorizationViewController

阅读有关远程 View Controller 的更多信息 here

关于ios - 如何在 Apple Pay PKPaymentAuthorizationViewController 上方显示 UIAlertView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30607127/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com