我试图在我的IOS应用程序中实现PayFort,我在项目中添加了PayFort FrameWork和bundle。当我初始化payFort对象时,它会给我带来以下崩溃
由于“NSInvalidArgumentException”异常终止应用程序,原因:'-UITextField setFloatingLabelActiveTextColor::未识别的选择器发送到实例0x7f81e3413d40‘
我使用以下代码:
func payforCall(){
let payFort = PayFortController.init(enviroment: KPayFortEnviromentSandBox)
payFort?.isShowResponsePage = true;
payFort?.delegate=self
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")
})
}发布于 2018-01-04 11:51:38
在“目标-ObjC生成设置”选项卡中的其他链接器标志中设置->
发布于 2019-05-29 14:38:02
我也有同样的问题,我花了几个小时才意识到我用小的"C“字母输入了-objc

在项目生成设置中,-> Other Linker Flags ->设置为-ObjC
https://stackoverflow.com/questions/46560048
复制相似问题