我们在项目中使用以下PayPal SDK:- https://github.com/paypal/paypal-ios-sdk
对于导航颜色更改,我们应用了以下解决方案:-
let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self)
paymentViewController?.modalPresentationStyle = .fullScreen
self.navigationController?.navigationBar.barTintColor = UIColor.red
self.navigationController?.navigationBar.isTranslucent = false
self.navigationController?.present(paymentViewController!, animated: true, completion: nil)
但使用上述解决方案导航颜色不会改变。
任何人都有解决方案,请帮助我。
谢谢。 什拉达·瓦什纳尼
let paymentViewController = PayPalPaymentViewController(payment: payment, configuration: payPalConfig, delegate: self)
paymentViewController?.modalPresentationStyle = .fullScreen
paymentViewController.navigationController?.navigationBar.barTintColor = UIColor.red
paymentViewController.navigationController?.navigationBar.isTranslucent = false
paymentViewController.navigationController?.present(paymentViewController!, animated: true, completion: nil)