Permalink
Browse files

Merge branch 'master' of github.com:omz/AppSales-Mobile

  • Loading branch information...
2 parents a077ba3 + 4222a96 commit 808aa4027757514493c73b66bfab792d578a0d4e Ole Zorn committed Aug 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Classes/AppSalesAppDelegate.m
@@ -32,8 +32,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
srandom(time(NULL));
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
+ NSString *currencyCode = [[NSLocale currentLocale] objectForKey:NSLocaleCurrencyCode];
+ if (![[CurrencyManager sharedManager].availableCurrencies containsObject:currencyCode]) {
+ currencyCode = @"USD";
+ }
+
NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], kSettingDownloadPayments,
+ currencyCode, @"CurrencyManagerBaseCurrency",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];

0 comments on commit 808aa40

Please sign in to comment.