gpt4 book ai didi

ios - 无法识别的选择器发送到实例 0x103026600 payfort

转载 作者:行者123 更新时间:2023-11-30 11:29:34 30 4
gpt4 key购买 nike

我在我的项目中使用 PayFort IOS SDK,遵循此处找到的文档:https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.8.pdf

到达 5.3 中的第 4 步...但我收到此错误:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITextField setFloatingLabelActiveTextColor:]: unrecognized selector sent to instance 0x103026600'

我的代码是:

   class ViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()

let payFort = PayFortController.init(enviroment: KPayFortEnviromentSandBox)

let request = NSMutableDictionary.init()
request.setValue("1000", forKey: "amount")
request.setValue("AUTHORIZATION", forKey: "command")
request.setValue("USD", forKey: "currency")
request.setValue("email@domain.com", forKey: "customer_email")
request.setValue("en", forKey: "language")
request.setValue("112233682686", forKey: "merchant_reference")
request.setValue("token" , forKey: "sdk_token")

payFort?.callPayFort(withRequest: request, currentViewController: self,
success: { (requestDic, responeDic) in
print("success")
}, canceled: { (requestDic, responeDic) in
print("canceled")
},
faild: { (requestDic, responeDic, message) in
print("faild")
})

// Do any additional setup after loading the view, typically from a nib.
}

我错过了什么或做错了什么?

最佳答案

我遇到了同样的问题,从评论中,我找到了解决方案,这是由于 UITextField 实现不佳,payfort sdk 之前不是该文件。现在,我创建了一个示例项目,您可以从 here 获取该项目

https://github.com/naveedahmad99/PayfortPaymentDemo-iOS

视频演示:https://github.com/naveedahmad99/PayfortPaymentDemo-iOS/blob/master/Screenshot/demo_shot.gif

enter image description here

关于ios - 无法识别的选择器发送到实例 0x103026600 payfort,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50389375/

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