title: objective-c constants.h static const
body: <p>I googled a lot of similar questions, but none of them had a really good answer about what i needed.
  Im wondering about the best way to write constants in some .h file.
  my constants file is just a clear file with no imports, just clear .h file. I import it in prefix file.
  when i use</p>
  
  <pre><code>static  NSInteger someInteger = 1;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>static BOOl someBool = YES;
  </code></pre>
  
  <p>The compiler compiles okay but gives me a warning that this variable is unused even though im using it multiple times in different classes.
  But if i use </p>
  
  <pre><code>static NSString* someString = @"";
  </code></pre>
  
  <p>there are not any warnings.</p>
  
  <p>also if i use </p>
  
  <pre><code>const NSInteger someInteger = 1;
  </code></pre>
  
  <p>Compiler compiles okay for a real device, but when running on a simulator it does not compile with an error <code>duplicate symbols for architecture i386</code></p>
  
  <p>also what is the difference between </p>
  
  <pre><code>const NSString* someString = @"";
  const NSInteger someInteger = 1;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>NSString* const someString = @"";
  NSInteger const someInteger = 1;
  </code></pre>
  
  <p>I ended up using <code>static const NSInteger someInteger =1;</code>, but i wonder if this is a right option.
  So really my question is: what words should i use to successfully create a constants.h file?</p>