An app I'm working on requires the user to enter their address which is then stored on a 3rd party system. The 3rd party has a predefined list of countries and states so when I send off the address I need to send an id for those fields.
When I've used this system on the web I've had the user pick their country first using a select box and then had a second select box where they pick their state (this list is updated when the user changes their country).
What I'm wondering is what's the best way to get that information from a user in an iPhone app?
The two options I've considered so far are:
Re-creating something similar to the html select box, so there's a form field that when the user taps triggers an action sheet with a standard iOS picker (similar to this: http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how).
Have a button on the form that takes the user to a new screen with a scrollable list of countries / states (depending on which one they're editing)
Does anyone have any advice as to which of those is the best approach or if there's a better way I've overlooked?