PaystackHQ / paystack-ios

Paystack SDK for iOS. Accept Payments on iOS
http://paystack.com
MIT License
26 stars 31 forks source link

Cannot convert value of type 'UIViewController.Type' to expected argument type 'UIViewController' #11

Open SkIsArrived opened 6 years ago

SkIsArrived commented 6 years ago

I Have an issue in Paystack implementation in IOS Line: PSTCKAPIClient.shared().chargeCard(cardParams, forTransaction: transactionParams, on: UIViewController, didEndWithError: { (error, reference) -> Void in NSLinkEditErrorHandlers(error)

Error: Cannot convert value of type 'UIViewController.Type' to expected argument type 'UIViewController'

ibrahimlawal commented 6 years ago

hey @SkIsArrived I don't have any context to look into this. What did you do to make Xcode mad?

ibrahimlawal commented 6 years ago

To help you debug, I need to see your code.

MrSMAK commented 6 years ago

You ned to pass the UIViewController object where UIViewController is specified in your code. Thanks