title: Concatenate constants Objective-C ios
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3060139/how-to-create-constant-nsstring-by-concatenating-strings-in-obj-c">How to create constant NSString by concatenating strings in Obj-C?</a>  </p>
  </blockquote>
  
  
  
  <p>I have two constants that I would like to concatenate: </p>
  
  <pre><code>NSString * const WEBSITE_URL = @"http://192.168.1.15:3000/";
  NSString * const API_URL = @"http://192.168.1.15:3000/api/";
  </code></pre>
  
  <p>Normally in other languages I would concatenate the WEBSITE_URL in API_URL, but you can't concatenate a compile time constant since stringWithFormat or anything like it is a runtime, not compile time method.</p>