问题描述
我正在尝试实现MRCountryPicker来选择国家/地区标记"和代码".我已经安装了广告连播.
I am trying to implement MRCountryPicker for selecting Country Flag and Code.I have installed pods.
现在我不知道如何获取委托方法,或者如何声明这样的"MRCountryPickerDelegate"
now i have no idea how can i get delegate method or how can i declare like this "MRCountryPickerDelegate"
有关更多详细信息,请查看
for more detail check out
ViewController类:UIViewController, MRCountryPickerDelegate {
class ViewController: UIViewController, MRCountryPickerDelegate {
我遇到此错误
感谢您的赞赏和帮助.谢谢.
Thanks for your appreciation's and help..Thank you.
推荐答案
如果我正确理解了您的问题,首先,您必须导入MICountryPicker",然后你写"MRCountryPicker"!该库为"MICountryPicker",请检查您的拼写,并确保您输入的内容正确.MICountryPickerViewDelegate的示例:
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!