title: modifying constants in objective c during run time
body: <p>I am trying to solve the following problem. I have the following constants in my header file:</p>
  
  <pre><code>#define PREFS_MY_CONSTANT_1 @"bla1"
  #define PREFS_MY_CONSTANT_2 @"bla2"
  #define PREFS_MY_CONSTANT_3 @"bla3"
  ...
  </code></pre>
  
  <p>In one of my functions, I'd like to print to the UIbutton one of those strings based on user input, so say the user inputs '1', i would show bla1. Instead of creating a huge switch (i have 100 of those), I am looking for a way to combine the constant with the variable holding the user input, so something like that ideally:</p>
  
  <pre><code>NSInteger input;
  [button setTitle:PREFS_MY_CONSTANT_{$input} forState: UIControlStateNormal];
  </code></pre>
  
  <p>Is something like that possible? what would be the best way to solve this?</p>