Question: I'd like to be able to determine which store the user connects to from inside my app, so that I can direct them to some appropriate content for their device AND store. Does anyone know how to get this information?

Basically, if the user is in the UK, and connects to the UK store, I want my function/method to return GB, if in Korea, I want KR, Australia = AU etc. Any help would be appreciated.

Answer: 
I need the same functionality. At the moment I'm considering reading using data from NSLocale as default, but adding a setting in settings.app for user to customise this if it does not match.

This function is taken from [an answer to another question of mine](https://stackoverflow.com/questions/2639684/itunes-music-store-link-maker-how-to-search-from-within-my-app/2668190#2668190).

```
- (NSString *)getUserCountry
{
    NSLocale *locale = [NSLocale currentLocale];
    return [locale objectForKey: NSLocaleCountryCode];
}

```
You should probably use

```
[[userDefaults dictionaryRepresentation] objectForKey:@"NSLocaleCode"];

```

This will return a language code like en\_US or en\_UK or en\_AU or even zh\_CN, zh\_MY, jp\_JP and so on.

Parse the correct codes which you support and direct them accordingly.