Skip to content

Instantly share code, notes, and snippets.

@GenralDesigns
GenralDesigns / gist:62129d0ed577f69df19b
Created July 2, 2014 11:10
Objective-C CSV Exchange Rate Generator
-(void)createExchangeRateCSVFile {
//Put your output path here:
NSString *outputPath = @"/Users/Milo/Desktop/ExchangeRates.csv";
NSArray *currencyCodes = [NSLocale ISOCurrencyCodes];
NSMutableArray *array = [NSMutableArray array];
@GenralDesigns
GenralDesigns / MGCountryNames.h
Created July 2, 2014 07:49
iOS Country Names to Locale Identifiers
//
// Simply import this header to use it.
// Create a locale like this: NSLocale *myLocale = [NSLocale localeWithLocaleIdentifier:MGCountryXXXX];
#ifndef CurrencyExchange_CountryNameKeys_h
#define CurrencyExchange_CountryNameKeys_h
#define MGCountryKenya @"en_KE"
#define MGCountryTogo @"ee_TG"