A picker view of province-city-area three-level linkage.
-
Init the picker view. eg.
let picker = AddressPickerView()
. -
Call the method
show()
. eg.picker.show()
. -
The picker result is a Tuple will callback from the
SelectValueCallback
of picker view instance.such as:
picker.selectValue = { (p, c, a) in self.resultLabel.text = p + c + a }