问题
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
Thanks for your appreciation's and help..Thank you.
回答1:
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)
}
来源:https://stackoverflow.com/questions/47456506/how-to-use-mrcountrypickerdelegate