本文介绍了如何使用 MRCountryPickerDelegate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实施 MRCountryPicker 以选择国家/地区标志和代码.我已经安装了 pod.

现在我不知道如何获得委托方法或如何声明这样的"MRCountryPickerDelegate"

详情请查看

感谢您的赞赏和帮助..谢谢.

解决方案

如果我正确理解你的问题,首先你必须导入 MICountryPicker",然后你写MRCountryPicker"!!图书馆是MICountryPicker",请检查您的拼写并确保您写的是真实的.MICountryPickerViewDelegate 示例:

@objc 公共协议 MICountryPickerDelegate: class {func countryPicker(picker: MICountryPicker, didSelectCountryWithName name: String, code: String)@objc 可选 func countryPicker(picker: MICountryPicker, didSelectCountryWithName name: String, code: String, dialCode: String)

}

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

i am getting this error

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

解决方案

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)

}

这篇关于如何使用 MRCountryPickerDelegate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 15:03