How to use MRCountryPickerDelegate
Asked Answered
C

1

0

I am trying to implement MRCountryPicker for selecting Country Flag and Code.I have installed pods.

now i have no idea how can i get delegate method or how can i declare like this "MRCountryPickerDelegate"

for more detail check out

https://github.com/xtrinch/MRCountryPicker

class ViewController: UIViewController, MRCountryPickerDelegate {

i am getting this error

enter image description here

Thanks for your appreciation's and help..Thank you.

Carine answered 23/11, 2017 at 13:18 Comment(2)
Did you import it ? like import MRCountryPickerParisparish
Your full code can help us to help you.Kentledge
C
0

If I understand your question properly, First you must "import MICountryPicker", then you write "MRCountryPicker"!! the library is "MICountryPicker", please check your spelling and make be sure that you write true. example of MICountryPickerViewDelegate:

@objc public protocol MICountryPickerDelegate: class {
func countryPicker(picker: MICountryPicker, didSelectCountryWithName name: String, code: String)
@objc optional func countryPicker(picker: MICountryPicker, didSelectCountryWithName name: String, code: String, dialCode: String)

}

Crag answered 14/4, 2018 at 14:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.