Get a list of states according to the selected country

I want to get the names of all the state lists of a particular country, which are selected from the drop-down menu.

I know how to get a list of all countries using Apple code, but now I need a list of all states.

Is there any db code or API for this?

+5
source share
1 answer

You can download this sqlite file. This is a database of countries with relevant states. You can re-create the request each time the user selects a country.

NSString *queryString = [NSString stringWithFormat:@"select zone_id , name from
                       zone where country_id = %d", countryID];
+8
source

All Articles