title: What's the best way to store many NSDictionaries?
body: <p>I need to store many <strong>Facebook App Id's</strong> and <strong>Twitter Consumer Keys</strong> for differente configurations and settings in my iPhone application.</p>
  
  <p>I know the way I'm doing this is not the best one, because it has too many <code>if else</code> statements. What would be the best way to accomplish this task, using a correct <strong>Objective-C design pattern?</strong></p>
  
  <p>Here is my code:</p>
  
  <pre><code>- (id) init {
  self = [super init];
  if (!self) return nil;
  
  keyNames = [[NSArray arrayWithObjects:
               @"facebookAppId", 
               @"facebookLocalAppId",
               @"twitterConsumerKey",
               @"twitterSecret",
               nil]retain];
  
  if (MainLanguage == @"English") {
  
      keys = [[NSArray arrayWithObjects:
               @"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", //facebookAppId
               @"yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy", //facebookLocalAppId
               @"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz", //twitterConsumerKey
               @"wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww", //twitterSecret
               nil]retain];
  
      dictionary = [[NSDictionary dictionaryWithObjects:keys forKeys:keyNames]retain];
  
  }
  
  else if (MainLanguage == @"Spanish") {
  
      keys = [[NSArray arrayWithObjects:
               @"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", //facebookAppId
               @"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", //facebookLocalAppId
               @"cccccccccccccccccccccccccccccccc", //twitterConsumerKey
               @"dddddddddddddddddddddddddddddddd", //twitterSecret
               nil]retain];
  
      dictionary = [[NSDictionary dictionaryWithObjects:keys forKeys:keyNames]retain];
  
  }  else if (MainLanguage == @"French") {
  
     //etc...
  
  } else if (MainLanguage == @"Italian") {
  
      //etc...
  
  }
  
  
  //etc..
  
  return self;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>-(void)dealloc {
  
      [keyNames release];
      [keys release];
      [dictionary release];
      [super dealloc];
  
  }
  </code></pre>