How to use MRCountryPickerDelegate

不想你离开。 提交于 2019-12-11 15:01:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!