Skip to content

Country picker #3

@marbetschar

Description

@marbetschar

What would be the best approach in adding a country picker to the PostalAddressRow?

My idea right now is:

  1. Add a UIButton named countryButton which can be used in a NIB instead of countryTextField.
  2. Assign all country iso codes to the PostalAddressRow.dataProvider as selectable default values
  3. Show a SelectorViewController for the current PostalAddressRow if the countryButton is tapped
  4. Store the selected country code of the SelectorViewController in the PostalAddress.country field of the row
  5. Dismiss the SelectorViewController
  6. Display the localized country name as label of the countryButton based upon the PostalAddress.country field

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions