International Support Quick Note

After seeing the sales data, I’m super glad I have this little thing before we set settings for the first time:

if ([[[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] isEqualToString:@”US”]) {

[userDefaults setInteger:kImperialSegment forKey:@”units”];

} else {

[userDefaults setInteger:kMetricSegment forKey:@”units”];

}

Half the sales of Lens•Lab are from places outside the US where they use the much more intelligent and rational metric system. We set metric as the default for these lucky souls.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: